Created
February 17, 2020 13:12
-
-
Save Nekodigi/8b7e56400db123ef56d3ff36c744d585 to your computer and use it in GitHub Desktop.
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
float nScale = 100; | |
float pSize = 10; | |
float zoff = 0; | |
void setup(){ | |
fullScreen(); | |
} | |
void draw(){ | |
background(0); | |
noStroke(); | |
for(float y = 0; y < height; y+=pSize){ | |
for(float x = 0; x < width; x+=pSize){ | |
fill((sin(noise(x/nScale, y/nScale)*TWO_PI*2+zoff)+1)/2*255); | |
rect(x, y, pSize, pSize); | |
} | |
} | |
zoff += 0.1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment