xxxxxxxxxx
65
function setup() {
createCanvas(400, 400);
}
function draw() {
background(245,245,220);
strokeWeight(1);
stroke(204, 204, 255);
//building 1
stroke(204, 0, 153);
noFill();
fill(255, 153, 204);
rect(-5,200, 50, 220);
strokeWeight(1.5);
line(0,240, 45, 240);
//building 2
strokeWeight(2);
stroke(51, 204, 51);
line(60, 400 ,60 ,160);
line(140, 400 ,140 ,160);
line(60, 160, 120, 130);
line(80, 120, 140, 160);
line(100, 400, 100, 250);
line(110, 400, 110, 230);
line(120, 400, 120, 260);
//building 3
strokeWeight(1.5);
stroke(102, 204, 255);
fill(204, 255, 255);
rect(155,130, 30, 400);
rect(165,130, 30, 400);
//me
fill(255, 204, 102);
stroke(0, 0, 0);
rect(300, 347, 30, 55, 20, 15, 10, 5);
fill(0,0,0);
//arm
rect(321, 352, 8, 25, 20);
rect(290, 370, 35, 8, 20);
//paper
line(280, 355, 290, 372);
line(280, 355, 266, 358);
line(266, 358, 278, 380);
line(278, 380, 300, 376);
//face
fill(0,0,0);
ellipse(310, 335, 24, 32);
noFill();
//engineeringhat
fill(255, 255, 0);
stroke(255, 255,0);
arc(310, 325, 28, 30, PI, 0);
strokeWeight(3);
line(310, 323, 290, 327);
strokeWeight(1);
stroke(0, 51, 102);
line(310, 315, 310, 310);
line(314, 317, 314, 311);
line(318, 320, 318, 313);
}