int nr = 80; int drawNo = 80; int dur = 280; int drawTo = 10; float rot = 0f; float step = 2f; float[][][] lines; //------------------------------------------------ void setup() { size(300,300,P3D); dur = width-20; reConstruct(); } //------------------------------------------------ void reConstruct() { lines = new float[3][nr][dur]; for(int i=0 ; iwidth-24) drawTo = constrain( height-mouseY-10, 1, height-20); stroke(0,0,0,64); fill(0,0,0,32); rect( width-15, height-drawTo-10, 5, drawTo ); noFill(); rect( width-15, 10, 5, height-20 ); // renew button rect( 10,10,10,10 ); // no of tracks if(mousePressed) if(mouseX > 11 && mouseX < width/2+10 && mouseY>height-20) drawNo = (mouseX-5)/2; fill(0,0,0,32); for(int i=0;i=drawNo/5) noFill(); rect( 10+10*i , height-15 , 5 , 5 ); } translate( width/2, height/2, height/2 ); rotateY(rot); rot+=0.005; stroke(0,0,0,16); for(int i=0 ; i