xxxxxxxxxx
function setup() {
createCanvas(900, 900);
angleMode(DEGREES);
background('lightBlue');
}
function draw() {
// grass
fill('forestGreen');
strokeWeight(0);
rect(0, 600, 900, 300);
// house
fill(214, 73, 51);
square(50, 400, 300);
//roof
fill(0);
triangle(50, 400, 200, 230, 350, 400);
//windows
fill(88, 164, 176);
stroke(46, 90, 97);
strokeWeight(7);
quad(80, 500, 160, 500, 160, 430, 80, 430);
quad(240, 500, 320, 500, 320, 430, 240, 430);
//door
strokeWeight(0);
fill(136, 42, 27);
ellipse(200, 600, 80, 150);
//doorknob
stroke('black');
strokeWeight(10);
point(225, 600);
//sun
strokeWeight(0);
fill('yellow');
circle(700, 150, 150);
//roof chimney?
fill('brown');
arc(200, 230, 80, 80, 132, 350 - 300);
// lines for the inside of the windows
strokeWeight(7);
stroke(46, 90, 97);
// left window
line(120, 500, 120, 430);
line(80, 465, 160, 465);
//right window
line(280, 500, 280, 430);
line(240, 465, 320, 465);
}