public void spiral (int n, int ang, int e, int msec){ for(int i=1,int color=1;i<=n;i++,color++){ move(i*e); addAngle(ang); pause(msec); if(color>4) color=1; if(color == 1) setColor(Red); else if(color == 2) .... .... } }