xxxxxxxxxx
37
/*
Code Example by Daniel Weiner
Please share and use
This code is based on lessons
from the Coding Train
*/
function setup() {
createCanvas(300, 300);
}
function draw() {
// This is the sky
background('cyan');
// This is the grass
noStroke()
fill(0, 255, 0, 155)
rect(0, 200, 300, 100)
// This is the left balloon
strokeWeight(2)
stroke(0, 0, 255);
fill(255, 0, 0)
line(100, 100, 75, 175)
ellipse(100, 100, 50, 75)
// This is the right balloon
line(250, 100, 240, 150)
ellipse(250, 100, 25, 50)
// This is the sun
noStroke()
fill(255, 255, 0, 225)
ellipse(300, 0, 100, 100)
}