class fish{ boolean start; float x,y; float h; color c; fish(color bodyc, float bodyh) { start = false; x = random(width); y = random(height); h = bodyh; c = bodyc; } void draw() { noStroke(); //body fill(c); ellipse(x,y,2*h,h); //tail triangle(x-h,y-h/2,x-h,y+h/2,x-h/2,y); //eye fill(255); ellipse(x+h/2,y,h/4,h/4); fill(0); ellipse(x+h/2,y,h/5,h/5); } void swim() { x = x + random(-1,1); y = y + random(-1,1); } }