/*Built with 0.65 Alpha, based on Proce55ing noise() example. by Alessandro Capozzo - GHOSTAGENCY 15 october 2003 */ float noiseScale=0.02f; void setup(){ size(600,150); framerate(30); } int xcoef; int ycoef; int xlung; float n=0.00f; float d=0.4f; void loop() { n=n+d; background(230,210,190); for (int y=0; y<50; y++) { for(int x=0; x<30; x++) { float noiseVal = noise((n+x)*noiseScale,(-n+y)*noiseScale,y*noiseScale); stroke(230-(noiseVal*100),250-(noiseVal*250),160-(noiseVal*160)); int cl=color(220-(noiseVal*50),250-(noiseVal*240),190-(noiseVal*190)); fill(cl); xcoef=(int)(noiseVal*40); ycoef=3; xlung=x*xcoef+xcoef; if(x==29){ xlung=width; } rect(x*xcoef,y*ycoef,xlung,y*ycoef+ycoef); } } }