Assignment #2 (part1)
- elissa1810
- Sep 7, 2020
- 1 min read

Doing this assignment was very fun actually. Just messing round with the different shapes to create something you did not think that you could create. Being that I have not coded in about a year I thought that I would struggle a little but I did not. Once my memory was refreshed it came so easily to me.
function setup() {
createCanvas(800, 600);
}
function draw() {
background(230, 285, 250);
//green grass
fill('green');
rect(-0, 300, 650, 400);
//house
fill('yellow');
rect(300,150,200,200);
// left window
noStroke()
fill('grey')
rect(310,205,50,40);
//right window
noStroke()
fill('grey')
rect(430,205,50,40);
//Door
fill('black')
rect(378,286,35,65);
//roof
fill('black');
triangle(400,90,190,190,600,190);
}
Comments