function fish(thisx,thisy){ fill('orange') ellipse(thisx,thisy,100,70) fill(0) ellipse(thisx+30,thisy-10,20,20) line(thisx+30,thisy+5,thisx+45,thisy+5) } function setup(){ var myCanvas = createCanvas(windowWidth,windowHeight); //you must keep this line unmodified fishx = [] fishy = [] for(i=0;i<20;i++){ fishx[i] = random(width) fishy[i] = random(height) } } function draw() { background('deepskyblue') fill(255) for(i=0;i<fishx.length;i++){ thisx = fishx[i] thisy = fishy[i] fishx[i] +=1 if(fishx[i]> width){ fishx[i] = 0 } fish(thisx,thisy) } for(i=0;i<fishx.length;i++){ thisx = fishx[i] thisy = fishy[i] fishy[i] +=1 if(fishy[i]> height){ fishy[i] = 0 } fill('brown') rect(thisx+50,thisy+20,20,20) } }