Skip to content

Instantly share code, notes, and snippets.

@m0wh
Created March 8, 2018 10:16
Show Gist options
  • Save m0wh/d360b1dcf26eb70c4ebbaa1f6d47aa4e to your computer and use it in GitHub Desktop.
Save m0wh/d360b1dcf26eb70c4ebbaa1f6d47aa4e to your computer and use it in GitHub Desktop.
Processing experiement
int point = 2;
int layers = 60;
float radius;
float AAA = 0;
void setup() {
size(1920, 1080);
stroke(0);
frameRate(50);
noFill();
strokeWeight(0.2);
pixelDensity(2); // If you have a retina screen
}
void draw() {
background(255);
radius = 1.1*height/(2*layers) - 1;
translate(width/2, height/2);
for (int layer = 0; layer < layers; layer++) {
beginShape();
for (float i = 0; i < 2*PI; i+=2*PI/(3+layer*AAA) ) {
noFill();
vertex((layer+1)*radius*sin(i), (layer+1)*radius*cos(i));
}
endShape(CLOSE);
for (float i = 0; i < 2*PI; i+=2*PI/(3+layer*AAA) ) {
fill(255);
//ellipse((layer+1)*radius*sin(i), (layer+1)*radius*cos(i), point, point);
noFill();
}
}
AAA+=.0005;
}
@m0wh
Copy link
Author

m0wh commented Feb 12, 2019

image

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