float water; float sky; float wavesX = 10,wavesXX =2; int count=1; float sunX,sunY; float x,y,ww,hh; float horizon=height/3; float left=20, top=20, right=480, bottom=580; float w= random (25,150); float h= random (10,50); int bgR, bgG, bgB, bgT; int count2=0; float fishX, fishY; float fishDX=3; float fishDY=0; int numfishes= 3; void setup(){ size(600,600); horizon=height/2; reset(); } void reset(){ x=0; y=random(100,500); w=random(10,70); h=w/3; } void draw (){ sunX= (sunX + 2) % width; ocean(); sky(); waves(); scene(); fish(); seaweed(); } void scene() { wavesX +=6; // wave speed if (wavesX > width+80) { // smooth transition wavesX= - width; } } void waves() { // the waves// fill(135, 206, 235); noStroke(); for(float x=wavesX-10; x width) { sunX=0; sunY= random( 60, horizon); } sunX= sunX+2; fill(0); ellipse(sunX, sunY, 60,60 ); } void fishes(int many){ //multiple fish swim around// float x= fishX, y=fishY; for (int j=0; j0){ eye (x+25, y-12); } else{ eye (x-25, y-12); } } void eye(float x, float y){ //the eyes of the fish// fill(0,0,255); ellipse(x,y+6,10,10); }