xxxxxxxxxx
25
let div = 2;
function circulate(x, y, r, h) {
if (r > 4) {
circulate(x - r / 2, y + r / 2, r / div, h + 25);
stroke(h % 255, 200, 200);
circulate(x + r / 2, y - r / 2, r / div, h + 25);
stroke(h % 255, 200, 200);
}
circle(x, y, r)
}
function setup() {
createCanvas(400, 400);
colorMode(HSB);
}
function draw() {
background(220);
noFill()
circulate(width / 2, height / 2, 200, 10);
}