Instantly share code, notes, and snippets.

Embed
What would you like to do?
function setup() {
createCanvas(600, 700);
}
function draw() {
background(220);
stroke(255);
noFill();
drawCircle(300,200,200);
}
function drawCircle(x, y, d) {
ellipse(x,y,d);
if (d > 2) {
drawCircle(x + d * 0.25, y, d * 0.5);
drawCircle(x - d * 0.25, y, d * 0.5);
drawCircle(x, y + d, d * 0.5);
drawCircle(x, y, d * 0.5);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment