Hello, I am currently trying to make a simple circle fractal. I for some reason am not getting the largest circles/the starting ones. Here is my code:
void setup() {
size(640,360);
}
void draw() {
background(255);
drawCircle(width/2,height/2,200);
}
void drawCircle(float x, float y, float radius) {
ellipse(x, y, radius, radius);
if(radius > 8) {
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);
}
}
This text will be hidden
This is what I get:
This is what I should get: https://imgur.com/a/rolMWch (sorry I cant do built in the forums only allow me one picture)