SketchBook

var 岸=-300
var 神=10
var 海=10
var 廉=10

function setup(){

}


function draw(){
  createCanvas(700,700);background(255,255,224);
岸=岸+3
神=岸+170
海=岸-100
廉=岸+80

  fill(138,43,226);
ellipse(岸,350,120,80);
triangle(岸-100,290,岸-100,410,岸-60,350);

fill(0,175,204);
ellipse(神,250,100,75);
triangle(神-70,200,神-70,300,神-50,250);

fill(255,194,14);
ellipse(海,500,120,40);
triangle(海-100,480,海-100,520,海-60,500);

fill(13,0,21);
ellipse(廉,570,90,60);
triangle(廉-60,540,廉-60,600,廉-45,570);

strokeWeight(10);
point(岸+14,335);
point(神+10,225);
point(海+14,490);
point(廉+14,580);

textSize(30);strokeWeight(1);fill(25,25,112);
text("赤い目の魚は何匹いるかな?",150,100);

if(岸>900){
岸=10;}
}