The Girl With The Pearl Earrings

This is an attempt to model “The Girl With the Pearl Earrings” using coding via Processing. This is just an attempt. There are some pieces out of place and things to be fixed still.

screen-shot-2016-09-07-at-12-24-14-pm

Code:

void setup(){
size(720,480);
background(0);
}

void draw(){

// Face shapes
stroke(255,223,196);
fill(255,223,196);

ellipse(400,200,300,400);
ellipse(400,200,300,250);

ellipse(400,100,300,250);
ellipse(425,190,300,400);

fill(238,206,179);
stroke(238,206,179);
ellipse(440,190,300,400);

// Chin
ellipse(390,355,160,100);

// Lips
fill(210,0,0);
stroke(240,0,0);
arc(360, 350, 80, 60, 0, PI+QUARTER_PI, OPEN);
rect(370,330,25,25);

fill(238,206,179);
stroke(238,206,179);
strokeWeight(5);
arc(370, 330, 90, 60, 0, PI+QUARTER_PI, OPEN);

// Hair
stroke(250,240,190);
fill(250,240,190);
ellipse(430,50,280,200);

rect(500,50,100,300);

// Eyes
fill(255);
stroke(255);
ellipse(285,150,55,35);
ellipse(400,175,55,35);

fill(0);
stroke(0);
ellipse(412,175,30,30);
ellipse(298,150,30,30);

// Eye Lids
fill(238,206,179);
stroke(238,206,179);
arc(275, 165, 50, 20, 0, PI+QUARTER_PI, OPEN);

fill(184,151,120);
stroke(184,151,120);
arc(395, 195, 60, 25, 0, PI+QUARTER_PI, OPEN);

// Nose
fill(255,223,196);
stroke(255,223,196);
triangle(320,50,340,270,280,250);

fill(225,184,153);
stroke(225,184,153);
triangle(330,50,350,270,295,260);

// Blue Band
stroke(0,76,153);
fill(0,76,153);
arc(442,120,400,330,PI,PI+QUARTER_PI);
arc(475,105,450,320,PI,PI+QUARTER_PI);

translate(width/2, height/2);
rotate(PI/7.0);
rect(-120, -190, 200, 100);

translate(width/2, height/2);
rotate(PI/6.5);
rect(-450, -250, 200, 100);

}

 

Advertisements
This entry was posted in Interactive, Non Time Based 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