float sp=0.2; int timer=0; float[] posxs= new float[36]; float[] posys= new float[36]; float[] tposxs= new float[36]; float[] tposys= new float[36]; int i=0; int ranN=0; int tranN=0; int ranc01=0; int ranc02=0; color cset01=color(random(255),random(255),random(255)); color cset02=color(random(255),random(255),random(255)); float theta=PI/6; float ttheta=0.0; float ctheta01=PI/18; float ctheta02=PI/9; float ctheta03=PI/2; float ctheta04=PI/3; void setup() { size(500,500); smooth(); frameRate(30); noStroke(); for(i=0;i<36;i++) { posxs[i]=random(500); posys[i]=random(500); posxs[i]=tposxs[i]; posys[i]=tposxs[i]; } } void draw() { //background(cset02); if(timer>60) { ranc01=int(random(255)); ranc02=int(random(255)); ranN=int(random(10)); for(i=0;i<36;i++) { if(ranN==0) { tposxs[i]=250; tposys[i]=250; } else if(ranN==1) { tposxs[i]=250+200*cos(ctheta01*i); tposys[i]=250+200*sin(ctheta01*i); } else if(ranN==2) { tposxs[i]=250+200*cos(theta*i); tposys[i]=250+200*sin(theta*i); } else if(ranN==3) { tposxs[i]=15*i; tposys[i]=15*i; } else if(ranN==4) { tposxs[i]=15*(34-i); tposys[i]=15*i; } else if(ranN==5) { tposxs[i]=15*i; tposys[i]=250; } else if(ranN==6) { tposxs[i]=250; tposys[i]=15*i; } else if(ranN==7) { tposxs[i]=250+180*cos(ctheta02*i); tposys[i]=250+180*sin(ctheta02*i); } else if(ranN==8) { tposxs[i]=250+200*cos(ctheta03*i); tposys[i]=250+200*sin(ctheta03*i); } else if(ranN==9) { tposxs[i]=250+180*cos(ctheta04*i); tposys[i]=250+180*sin(ctheta04*i); } } timer=0; ttheta=0.0; cset02=cset01; cset01=color(random(255),random(255),random(255)); } for(i=0;i