xxxxxxxxxx
let moveright=75
function setup() {
createCanvas(500, 500);
}
function draw() {
background(171,213,247);
//water and sand
noStroke();
fill(209,195,130);
rect(0,425,600,175);
fill(40,123,200);
rect(0,340,600,85);
//boat
fill(128,96,52);
arc(moveright,320,110,85, radians(0), radians(180), CHORD);
strokeWeight(3);
stroke(128,96,52);
line(moveright,320,moveright,245);
noStroke();
fill(255);
triangle(moveright+2,260,moveright+32,310,moveright+2,310);
triangle(moveright-2,260,moveright-32,310,moveright-2,310);
fill(242,10,79);
triangle(moveright+2,245,moveright+12,250,moveright+2,255);
moveright=moveright+1
if (moveright >= 750) {
moveright = -150;
}
}