Interactive Authoring Project 1

johannes_vermeer_1632-1675_-_the_girl_with_the_pearl_earring_1665-2 capture

The code used to create the second image is as follow:

size (720,480);
background (15,0,15);

// This is the head and neck of the girl
fill (235,199,183);
quad (450,240,570,200,600,350,510,350);
stroke (0);
ellipse (490,225,150,170);
stroke (235,199,183);
ellipse (480,160,200,200);
ellipse (460,200,170,230);
ellipse (460,295,65,55);
stroke (235,199,183);
// This is her earring
fill (116,123,131);
stroke (116,123,131);
ellipse (550,300,25,25);

// This is her shirt
fill (255);
stroke (255);
quad (470,380,467,400,580,420,520,340);
quad (586,330,594,400,580,420,520,340);

// This is her jacket
fill (150,105,63);
stroke (150,105,63);
quad (500,370,450,420,450,480,605,480);
quad (500,370,650,343,690,480,605,480);

// This is her face
// These are her eyes
fill (255);
stroke (255);
ellipse (400,170,35,20);
ellipse (411,170,22,22);
fill (0);
stroke (0);
ellipse (411,170,17,17);
fill (255);
stroke (255);
ellipse (407,167,4,4);

translate (75,8);
fill (255);
stroke (255);
ellipse (400,170,35,20);
ellipse (411,170,22,22);
fill (0);
stroke (0);
ellipse (411,170,17,17);
fill (255);
stroke (255);
ellipse (407,167,4,4);
translate (-75,-8);

// These are her lips
fill (146,44,30);
stroke (146,44,30);
quad (398,260,412,278,465,271,421,261);
fill (255);
stroke (255);
ellipse (421,270,30,4);

// This is her nose
fill (113,68,47,100);
stroke (113,68,47,100);
triangle (444,171,412,235,453,243);

// This is her hair
fill (234,200,128);
stroke (15,0,15);
quad (560,60,570,60,650,410,630,420);
quad (560,60,570,60,630,425,610,425);
quad (560,60,570,60,620,450,600,450);
stroke (234,200,128);
ellipse (525,55,120,60);
stroke (0);
quad (487,50,432,70,565,110,561,75);

// This is her head scarf
fill (55,80,134);
stroke (55,80,134);
quad (432,70,400,85,373,130,410,120);
quad (432,70,565,110,575,196,410,120);
quad (432,70,574,196,571,204,410,120);

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