Hi, I am trying to recreate this recursive circular pattern (via Daniel Shiffman’s book “Learning Processing”). How do I get the recursive pattern to fill the frame of the screen? As you can see, my code doesn’t include the left-hand side which is primarily white/blank.
void setup(){
size (800,800);
}
void draw(){
background(255);
smooth(8);
stroke(3);
noFill();
drawCircle(width/2, height/2, 400);
}
void drawCircle(float x, float y, float radius){
ellipse(x,y,radius,radius);
if(radius > 13){
drawCircle(x + radius/2, y, radius/2);
drawCircle(x - radius/2, y, radius/2);
drawCircle(x, y - radius/2, radius/2);
drawCircle(x, y - radius/2, radius/2);
drawCircle(x, y + radius/2, radius/2);
drawCircle(x, y + radius/2, radius/2);
drawCircle(x + radius/2, y + radius/2, radius/2);
drawCircle(x + radius/2, y - radius/2, radius/2);
}
}