Interactive Authoring : Project 1

Johannes_Vermeer_1632-1675_-_The_Girl_With_The_Pearl_Earring_1665.jpg   %e3%82%b9%e3%82%af%e3%83%aa%e3%83%bc%e3%83%b3%e3%82%b7%e3%83%a7%e3%83%83%e3%83%88-2016-09-07-%e5%8d%88%e5%be%8c1-31-12

The original “Girl with a Pearl Earring” by Johannes Vermeer (1902). (Left)

Recreated image by Processing. (Right)

 

Processing Code:

void setup(){
size(600,650);
}

void draw(){
smooth();
background(0);

ellipseMode(CENTER);
rectMode(CENTER);

//Neck
fill(253,240,206);
quad(227, 447, 297, 407, 272, 349, 190, 394);

//Face
fill(253,240,206);
beginShape();
vertex(137, 199);
vertex(235, 226);
vertex(308, 308);
vertex(236, 390);
vertex(172, 401);
vertex(136, 394);
vertex(92, 298);
vertex(106, 252);
vertex(98, 230);
endShape(CLOSE);

//Turban
fill(76,120,220);
beginShape();
vertex(137, 199);
vertex(235, 226);
vertex(308, 308);
vertex(314, 176);
vertex(194, 129);
vertex(125, 146);
vertex(98, 230);
endShape(CLOSE);

//Eyes-white
fill(255);
rotate(PI/20);
ellipse(165,239,40,27);
rotate(PI/40);
ellipse(263,223,46,27);

//Eyes-black
fill(0);
ellipse(191,225,21,22);
ellipse(272,223,25,23);

//Eyes-white2
fill(255);
ellipse(187,220,4,5);
ellipse(263,219,5,5);

//Nose
line(205,291,202,220);
line(205,291,231,296);

//lips
fill(243,84,84);
ellipse(232,313,49,6);
ellipse(234,321,47,11);

//Ear
line(354,253,361,221);
line(354,253,336,255);

//Pearl
fill(255);
ellipse(350,269,30,30);

//Cloth-white
fill(255);
beginShape();
vertex(287, 385);
vertex(307, 357);
vertex(391, 304);
vertex(420, 311);
vertex(315, 396);
vertex(281, 431);
endShape(CLOSE);

//Cloth-brown
fill(197,165,66);
beginShape();
vertex(315, 369);
vertex(420, 311);
vertex(422, 315);
vertex(591, 573);
vertex(276, 609);
vertex(286, 472);
vertex(281, 431);
endShape(CLOSE);

//Turban A
quad(347, 98, 328, 66, 243, 57, 209, 85);

//Scarf C
fill(76,120,220);
triangle(330, 18, 541, 379, 518, 398);

//Scarf B
fill(197,165,66);
triangle(335, 38, 520, 375, 497, 390);

//Scarf A
triangle(328, 36, 523, 424, 485, 445);

//Turban B
beginShape();
vertex(253, 58);
vertex(289, 31);
vertex(340, 36);
vertex(362, 61);
vertex(346, 97);
vertex(313, 66);
endShape(CLOSE);

}

Advertisements

About Yoko

I'm Yoko. I'm an international student from Japan. I love Japanese animation♡
This entry was posted in Interactive Authoring, 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