xxxxxxxxxx
22
function setup() {
createCanvas(600, 600);
}
function draw() {
background(0);
stroke(255);
noFill();
drawCircle(300, 300, 300);
noLoop();
}
function drawCircle(x, y, d) {
ellipse(x, y, d);
if (d > 2) {
let newD = d * 0.5;
drawCircle(x + newD, y, newD);
drawCircle(x - newD, y, newD);
// drawCircle(x, y + newD, newD);
// drawCircle(x, y - newD, newD);
}
}