xxxxxxxxxx
28
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
House(100,100,200,200);
}
function House(HouseX,HouseY, HouseW, HouseH)
{
fill(255);
rect(HouseX,HouseY, HouseW, HouseH); //front
fill(190, 0,0);
triangle(HouseX,HouseY, 200,20,300,HouseY); //top
fill(15,190,190)
rect(HouseX+30, HouseY+30, 50,50); //windowLeft
rect(HouseX+120,HouseY+30,50,50); //window2
fill(130, 20,0);
rect(HouseX+75,HouseY+130,50,70);
}