Drawing Circles (the hard way)


First we took a basic line and reconstructed it the hard way in order to alter that line in interesting random ways. Now we’re going to do the same with the circle. You know the drill, first we draw a circle the hard way:

// a simple circle drawn by rotating dots around a constant radius

stroke(0,60);
noFill();
// ellipse(width/2, height/2, radius*2, radius *2);

float x, y;
float lastX = -999;
float lastY = -999;

size(500,500);
background(255);
strokeWeight(3);
float radius = 100;
smooth();

for (float ang = 0; ang float rad = radians(ang); // this converts degrees into radians
   x = width/2 + (radius * cos(rad));
   y = height/2 + (radius * sin(rad));
   point(x,y);
}

Next we turn a circle into a spiral


Leave a Reply

Your email address will not be published. Required fields are marked *