Last active
January 14, 2018 23:21
-
-
Save KrabCode/8c663ad3fd95258149fa32a62ee97ccd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| public void settings() { | |
| // size(800,600); | |
| fullScreen(); | |
| } | |
| public void setup() { | |
| background(0); | |
| } | |
| public void draw(){ | |
| background(0); | |
| noStroke(); | |
| noFill(); | |
| drawRecursively(round(width/2), 0, 550); | |
| } | |
| void drawRecursively(int x , int y, float radius){ | |
| ellipseMode(CORNER); | |
| //rect(x-radius, y-radius, radius*2, radius*2); | |
| ellipse(x-radius, y-radius, radius*2, radius*2); | |
| float step = map(mouseX, 0, width, 0,.7f); | |
| if(radius>4){ | |
| int r =100; | |
| int g = 100; | |
| int b = 100; | |
| stroke(r, g, b); | |
| drawRecursively(x, y, radius*step); | |
| drawRecursively(x, round(y+radius), radius*step); | |
| drawRecursively(round(x-radius/1f), y, radius*step); | |
| drawRecursively(round(x+radius/1f), y, radius*step); } | |
| } |
Author
KrabCode
commented
Jan 14, 2018

Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment