Skip to content

Instantly share code, notes, and snippets.

@KrabCode
Last active January 14, 2018 23:21
Show Gist options
  • Select an option

  • Save KrabCode/8c663ad3fd95258149fa32a62ee97ccd to your computer and use it in GitHub Desktop.

Select an option

Save KrabCode/8c663ad3fd95258149fa32a62ee97ccd to your computer and use it in GitHub Desktop.
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); }
}
@KrabCode
Copy link
Author

obrazek

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