size(300, 200); background(135,206,235); // sky blue // sun fill(255,255,0); ellipse(250, 50, 30, 30); // sunrays strokeWeight(3); stroke(255,255,0); line(230, 70, 215, 85); line(270, 70, 285, 85); line(270, 30, 285, 15); line(230, 30, 215, 15); strokeWeight(1); // grass fill(0,255,0); stroke(0,255,0); rect(0, 120, 300, 80); // tree stroke(0); fill(0,100,0); triangle(50, 80, 30, 140, 70, 140); // house facade fill(255); rect(110, 100, 60, 60); // house roof fill(127); quad(105, 105, 175, 105, 170, 85, 110, 85); // chimney stroke(255,0,0); fill(255,0,0); rect(148, 72, 15, 28); // window fill(0); strokeWeight(2); rect(123, 110, 15, 20); // fence int numPosts = 25; float postWidth = 4; float fenceWidth = postWidth * (2*numPosts+1); float left = 80; float top = 150; strokeWeight(1); stroke(0); fill(139,90,43); rect(left, top+postWidth, fenceWidth, postWidth); rect(left, top+3*postWidth, fenceWidth, postWidth); for (int j=0; j < numPosts; j++) { rect(left+(2*j+1)*postWidth, top, postWidth, postWidth*5); }