Created
October 4, 2017 06:44
-
-
Save vinskim/5fa51bf132ed4770451843237c5b8979 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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