/*Built with 0.65 Alpha, based on Proce55ing noise() example. by Alessandro Capozzo - GHOSTAGENCY 5 october 2003 ported to .68 May 2007 */ float noiseScale=0.02f; void setup(){ size(600,200); framerate(35); } float n=0.00f; float d=0.4f; void loop() { n=n+d; background(230,230,210); for (int y=0; y<40; y++) { for(int x=0; x<300; x++) { if (y<20){ float noiseVal = noise((n+x)*noiseScale,(-n+y)*noiseScale,y*noiseScale); stroke(250-(noiseVal*150),180,150-(noiseVal*150)); point(x*2,50+noiseVal*100); } else if (y>20){ float noiseVal = noise((n+x)*noiseScale,(-n+y)*noiseScale,y*noiseScale); stroke(250-(noiseVal*150),180,150-(noiseVal*150)); point((x*2)-1,50+noiseVal*100); } } } }