import java.awt.*; import java.applet.*; import java.util.*; public class TURTLE03 extends Applet implements Runnable{ Dimension d; Image offI; SHELL shells[] = new SHELL[18]; int cycle, inc, curr, cnt, ccc; int body, fleg, bleg; Thread tt; public void init(){ d = getSize(); // r = new Random(); reset(); setShells(); offI = createImage(d.width, d.height); tt = new Thread(this); tt.start(); } public void reset(){ inc=0; fleg=0; bleg=0; body=0; cnt=0; curr=0; ccc=0; } public void setShells(){ for(int i=0; i10 && cnt%4==0) curr++; if(cnt>10 && ccc<255) ccc+=3; if(body>500){ reset(); for(int i=0; i