Last active
August 10, 2020 03:06
-
-
Save volfegan/2fe07a0e87318a62cc8d066305e51efb to your computer and use it in GitHub Desktop.
It looks like a desert sweep from a fly-by
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
//based from: https://twitter.com/ntsutae/status/1232297507192856576 | |
float i,j,t=-10; | |
int w=720; | |
void setup() { | |
size(720, 720); | |
noStroke(); | |
fill(0); | |
} | |
void draw() { | |
background(255); | |
for (i = 0; i < 99; i++) { | |
for (j = 0; j < 99; j++) { | |
rect(i, j, (sin(j * j + i / j+t * 7) % acos(pow(pow(i, 5-i/j * 7 + t), 3) * j) +.3), 1);//with cos() it makes glitchy | |
} | |
} | |
copy(this.get(), 2, 0, w/5, w/9, 0, 0, w*2, 3*w/2); | |
t-=.01; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment