/** waves by guru guru */ void setup() { size(300,300); smooth(); } void draw() { background(0); stroke(127); noFill(); for( int y = 0; y< 60; y++) { beginShape(); for( int x = 0; x<300; x++) { vertex( x, y*5+ sin( (y-30)*((mouseY+1.0)/600)*TWO_PI*(x-300+mouseX)/360 )*4); } endShape(); } }