int NN = 762; int N = NN; PSound flush; long len; long time; boolean doFlush; boolean doIntro = true; float[] px = new float[N]; float[] py = new float[N]; float[] pz = new float[N]; float[] dx = new float[N]; float[] dy = new float[N]; float[] dz = new float[N]; float ss = 0.1; float s = (ss *600)/N; void setup() { framerate(20); size(300,200,P3D); for(int i = 0; i300) { inCnt = 0; doIntro = false; N = NN; } else { intro(inCnt); inCnt++; } return; } if(doFlush) { for(int i = 0; ilen) { doFlush = false; flush.stop(); N = NN; inCnt = 0; doIntro = true; } } N-= 5; } else for(int i = 0; i=150) { i -= 150; if(i>150) i = 150; float si = sin(PI*i/300.); float cs = cos(PI*i/300.); for(int j = 0; j<7;j++) { float xx = cs*px[j] + si*py[j]; py[j] = -si*px[j] + cs*py[j]; px[j] = xx; } for(int j = N; j100) { px[j] = px[0] ; py[j] = py[0]; pz[j] = 0; dy[j] = 0; } } } }