Beth - I

By Elizabeth
void setup() { size(400, 400); background(157, 91, 40); smooth(); noLoop(); } void draw() { //Top Row building (40, 95, 50, 85); building (145, 55, 120, 20); building(320, 110, 60, 105); //Middle Row building(40, 225, 80, 50); building(170, 185, 20, 13); building(240, 229, 95, 80); //Bottom Row building(40, 320, 30, 8); building(125, 320, 140, 40); building(320, 320, 60, 25); } void building(int centerx, int centery, int w, int rh) { int h = 65; //Draw base noStroke(); fill(255, 3, 3); rect(centerx, centery, w, h); //rect(30, 65, 55, h); //Draw Roof stroke(0); fill(3, 178, 251); //triangle(xcenter + 15, ycenter + 80, 58, 30, 106, 80); triangle(centerx - 15, centery, centerx + w/2, centery - rh, centerx + w + 15, centery); //Draw Door stroke(0); fill(255); //ellipse(59, 118, 18, 23); ellipse(centerx + w/2, centery + 53, 18, 23); //Door Knob noStroke(); fill(0); //ellipse(65, 120, 2, 2); ellipse(centerx + w/2 + 5, centery + 58, 2, 2); //Draw windows stroke(255); fill(255, 158, 0); // ellipse(45, 90, 10, 10); // ellipse(60, 90, 10, 14); // ellipse(75, 90, 10, 10); ellipse(centerx + w/2, centery + 20, 8, 8); ellipse(centerx + w/2 - w/3, centery + 20, 8, 8); ellipse(centerx + w/2 + w/3, centery + 20, 8, 8); }

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*