//pisano float left=20, top=20, right=480, bottom=580; float w= random (25,150); float h= random (10,50); float r= random (100,255); float g= random (100,255); float b= random (100,255); Fish rob; Fish tim; Fish john; int many=5; Fish[] school; void setup(){ size (500,600); //background(100,100,100); reset(); } void reset(){ rob= new Fish(); rob.name = "rob"; tim= new Fish(); tim.name = "tim"; john= new Fish(); john.name= "john"; /* school= new Fish[many]; for (int j=0; jright-(w/2)) dx= -dx; if (ybottom-(h/2)) dy=-dy; dy= dy + random( -0.5, +0.5 ); if (abs(dy) > 10) dy /= 10; } void show(){ /// draws fish fill (r,g,b); ellipse (x,y,w,h);//body triangle (x-w/2,y,x-(w/2)-30,y-10,x-(w/2)-30,y+10);//fin text (name, x+15, y+15); } } void check(){ } //keypressed(){