Skip to content

Instantly share code, notes, and snippets.

@vinskim
Created October 4, 2017 06:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinskim/5fa51bf132ed4770451843237c5b8979 to your computer and use it in GitHub Desktop.
Save vinskim/5fa51bf132ed4770451843237c5b8979 to your computer and use it in GitHub Desktop.
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