Code Painting

Screen Shot 2016-09-07 at 10.03.03 AM.png

void setup() {
size(750,500);
background(200,244,211);
}

void draw() {
//terrain
noStroke();
fill(197,167,103);
rect(0,90,750,500);

noStroke();
fill(201,172,112);
rect(200,90,600,150);

noStroke();
fill(197,167,103);
rect(600,90, 176,100);

//buildings

//house
fill(93,99,89);

rect(300,50,70,50);
rect(540,45,80,59);
rect(540,65,130,40);
rect(700,80,40,40);

triangle(300,50,350,40,370,50);
triangle(541,50,570,20,620,50);
triangle(700,80,720,60,740,80);

//posts

stroke(0,0,0);
strokeWeight(4);
line(702,146,701,107);
line(654,132,654,97);
line(600,120,600,80);

//person

//body
stroke(230,169,159);
strokeWeight(67);
line(318,359,284,400);
line(284,400,202,412);

stroke(0,0,0);
strokeWeight(20);
line(260,380,292,424);
//arm
stroke(230,209,166);
strokeWeight(23);
line(341,376,316,423);
line(341,395,385,426);
line(316,423,295,479);

//head
fill(6,6,6);
noStroke();
ellipse(350,320,50,50);
ellipse(340,340,30,30);
}

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s