// 1000 Lines // Paul Bartlett // 18 Sept 2007 float[][] lineData; float[] goal; float[] velocity; float velScale = 0.0007; int pad = 10; int numLines = 1000; int spaces = numLines+1; void setup(){ size(640,480); frameRate(50); stroke(255); strokeWeight(.05); smooth(); // Setup line position & velocity arrays lineData = new float[4][numLines]; goal = new float[numLines]; velocity = new float[numLines]; for(int L=0; L width/spaces+m*width/spaces-pad){ goal[m]=mouseY; } } // Animate the lines for(int r=0; r