Created
March 8, 2018 10:16
-
-
Save m0wh/d360b1dcf26eb70c4ebbaa1f6d47aa4e to your computer and use it in GitHub Desktop.
Processing experiement
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
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; | |
} |
Author
m0wh
commented
Feb 12, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment