xxxxxxxxxx
58
function setup() {
createCanvas(400, 400);
}
function draw() {
background(250);
//Sky
fill(0, 255, 255);
noStroke();
rect(0, 0, 400, 200);
//Land
fill(0, 255, 0);
noStroke();
rect(0, 200, 400, 400);
//Sun
fill(252, 233, 3);
noStroke();
ellipse(200, 100, 100, 100);
//Cloud Left
fill(255, 255, 255);
noStroke();
ellipse(100, 50, 150, 50);
//Cloud Right
fill(255, 255, 255);
noStroke();
ellipse(250, 100, 150, 50);
//Path
fill(192, 192, 192);
stroke(150, 150, 150);
rect(0, 310, 400, 50);
//Tree Left
fill(90, 46, 46);
noStroke();
rect(50, 150, 30, 150);
//Tree Left Leaf
fill(0, 106, 0);
noStroke();
ellipse(65, 150, 125, 100);
//Tree Right
fill(90, 46, 46);
noStroke();
rect(280, 230, 30, 150);
//Tree Right Leaf
fill(0, 106, 0);
noStroke();
ellipse(295, 230, 120, 100);
}