Skip to content

Instantly share code, notes, and snippets.

@0x263b
Created January 20, 2016 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0x263b/153f13449d9ee9dfca8a to your computer and use it in GitHub Desktop.
Save 0x263b/153f13449d9ee9dfca8a to your computer and use it in GitHub Desktop.
void setup() {
size(500, 500);
frameRate(30);
}
float pos = TWO_PI;
void draw() {
colorMode(HSB, 360, 100, 100);
background(0,0,0);
for (int i = 70; i > 0; i--) {
float j = 100 - (i * 0.5);
float k = 75 - (i * 0.5);
float l = PI * pos;
float x1 = 10 + (i * 2.5);
float x2 = 15 + (i * 2.5) + (log(k) * k) / 3;
float y = 125 - (j * sin((j + l) * (PI/10)));
stroke(300-(i*2), 75, 100);
strokeWeight(3);
line(x1*2, y*2, x2*2, y*2);
}
pos -= PI * 0.02;
if (pos < -0.02) {
pos = TWO_PI;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment