xxxxxxxxxx
25
function setup() {
createCanvas(600, 600);
}
function house(){
rect(7,10,5,10);
rect(-15,25,30,20);
triangle(0, 10, -25, 25, 25, 25)
}
function draw() {
background(255);
fill(0);
noStroke();
for (var i = 0; i < height/60; i++){
for (var j = 0; j < width/60; j++){
push();
fill(i/(height/60)*255);
translate(60*j + 30,60*i);
house();
pop();
}
}
}