Ass­e­s­s­m­e­n­t 1

by Elizabeth Hennessey
  • Show Sketch
/** @peep sketchcode */
 
size(400, 400);
background(0);
smooth();
 
//setup
float x = 200;
float y = 200;
float inner = 10;
float outer = 150;
int points = 360;
 
 //calculate angle between points
 float delta = radians(360/points);
 
 //draw bezier lines
    stroke(random(100, 255), random(100, 255), random(100, 255));
    noFill();
 for (int i = 0; i < points; i += 1) {
   float ox = x + outer * cos(i*delta);
   float oy = y + outer * sin(i*delta);
  bezier(x, y, x + random(-20,20), y + random(-20,20), ox + random(-20,20), oy + random(-20,20), ox, oy);
 }
 
 //draw circle
 fill(255, 50);
 stroke(255);
 strokeWeight(1);
 smooth();
 ellipse(200, 200, 100, 100);
 
//draw inner circle
fill(0);
stroke(255);
strokeWeight(5);
smooth();
ellipse(200, 200, 70, 70);

~~~

Comments

Nobody has said anything yet.