Skip to content

Instantly share code, notes, and snippets.

@Nekodigi
Created February 17, 2020 13:12
Show Gist options
  • Save Nekodigi/8b7e56400db123ef56d3ff36c744d585 to your computer and use it in GitHub Desktop.
Save Nekodigi/8b7e56400db123ef56d3ff36c744d585 to your computer and use it in GitHub Desktop.
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