Coding A Painting

Image:

Screen Shot 2015-09-09 at 1.23.40 AM

Code used to make image:

void setup(){

size(500,800);

}

void draw(){

background(0);

stroke(116);
strokeWeight(1);
fill(196,175,137);
quad(125,320,334,263,505,522,251,545);

//HAIR
stroke(120);
strokeWeight(20);
line(56,197,144,130);
line(207,125,148,129);
line(210,127,268,215);
line(137,150,50,231);
line(131,168,76,233);
line(117,203,89,247);
line(257,194,335,325);
line(217,151,293,299);
line(210,168,294,358);
line(225,206,244,350);
line(140,179,98,283);
line(137,216,102,329);
line(144,262,118,328);
line(149,181,142,323);
line(168,209,159,340);
line(168,221,184,347);
line(183,205,206,337);

//HEAD
stroke(116);
strokeWeight(1);
fill(196,175,137);
ellipse(172,205,143,162);
fill(240);
ellipse(134,172,52,28);
ellipse(202,160,56,28);
fill(0);
ellipse(197,164,25,18);
ellipse(135,174,26,18);
fill(3);
rect(141,215,60,53,5,5,14,11);
strokeWeight(2);
stroke(40);
line(232,153,169,135);
line(147,141,108,166);

//UPPER BODY
stroke(116);
strokeWeight(1);
fill(196,175,137);
quad(135,330,157,362,65,426,20,413);
quad(44,400,73,426,241,387,236,350);
quad(338,266,351,306,489,368,540,313);
quad(344,331,337,369,489,368,540,313);

//LOWER BODY
quad(351,518,373,596,114,667,48,621);
quad(57,623,131,659,207,831,90,818);
quad(506,521,416,504,326,737,421,735);
quad(512,814,430,824,322,738,421,734);

//SON
stroke(116);
strokeWeight(1);
fill(232,220,198);
rect(225,281,83,179,10);
fill(232,220,198);
ellipse(248,504,39,107);
ellipse(288,504,40,106);
ellipse(247,579,21,50);
ellipse(289,582,24,55);
fill(232,220,198);
quad(156,240,196,227,243,297,224,323);
noStroke();
rect(236,277,67,13,10);
stroke(116);
fill(227,209,178);
ellipse(247,453,43,43);
ellipse(286,455,44,45);
noFill();
strokeWeight(6);
stroke(255,0,0);
curve(192, 264, 227, 279, 195, 229, 182, 85);
curve(212, 219, 219, 293, 195, 229, 176, 78);
curve(174, 223, 203, 293, 169, 236, 41, 141);
curve(250, 277, 302, 278, 239, 278, 300, 289);
curve(311, 277, 309, 318, 309, 288, 315, 289);

//HANDS
stroke(116);
strokeWeight(1);
fill(196,175,137);
quad(337,331,338,369,288,368,305,313);
quad(215,353,221,388,252,383,254,313);

}

Advertisements
This entry was posted in Non-Timebased and tagged , , , . 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