All Stories

Tweet P5 Noise Study 2

float t;void setup(){size(720,720);} void draw(){t+=.07;loadPixels();for(int a=0;a<517680;a++) pixels[int(red(pixels[a]))+a]= lerpColor(pixels[a]>>1,color(noise(a%720*.002,a/720*.002,t)>.5?255:0)>>2,sin(t)*.4+.5); updatePixels();} // #つぶやきProcessing