int num=60, framesAmount=120; float t, dx; float[] r = new float[num]; float[] x = new float[num]; void setup() { size(500, 500); background(0); for (int i=0; i240 && frameCount<361) saveFrame("image-##.gif"); if (frameCount%framesAmount==0) { t=0; for (int i=0; i