/*
Susie Lee
Section E
susiel@andrew.cmu.edu
Project-01
*/
function setup() {
createCanvas(600, 650);
background(255);
}
function draw() {
//background circle
strokeWeight(0);
fill(52,41,19);
ellipse (300, 270, 415, 415);
// face circle
fill(233,206,167);
ellipse (290, 400, 151, 151);
//ears
noStroke();
fill(233,206,167);
ellipse (368, 406, 18, 18);
ellipse (214, 406, 18, 18);
//earrings
noStroke();
fill(177,148,48);
rect(367, 412, 2.25, 5.3, 20);
rect (370, 412, 2.25, 5.3, 20);
rect (209, 411, 2.25, 5.3, 20);
rect (212, 413, 2.25, 5.3, 20);
triangle(369,403,368,405,371, 405);
//hair
strokeWeight(0);
fill(52,41,19);
ellipse (246, 334, 156, 113);
ellipse (358, 341, 91, 113);
strokeWeight(1);
stroke (255);
line (398,354, 398, 452);
line (391, 400, 391, 452);
line(382, 394, 382, 447);
line(200,361,200, 440);
line(207, 420, 207, 472);
stroke(255);
strokeWeight(1);
noFill();
ellipse (261, 334, 99, 63);
ellipse(364, 341, 63, 79);
strokeWeight(0);
fill(52,41,19);
rect(194, 265, 136, 65);
rect(206, 236, 29, 136);
rect(330, 289,87,59);
rect(365, 302, 31, 87);
//face
stroke(255);
strokeWeight(3);
noFill();
ellipse (256, 420, 30, 30);
ellipse (319, 420, 30, 30);
noStroke();
fill(233,206,167);
rect(256,402,20,35);
rect(238,421,37,17);
rect(320,402,20,35);
rect(300,421,37,17);
stroke(52,41,19);
strokeWeight(1);
noFill();
ellipse (257, 425, 20, 20);
ellipse (320, 425, 20, 20);
noStroke();
fill(233,206,167);
rect(244,413,24,13);
rect(307,413,24,13);
stroke(52,41,19);
strokeWeight(2);
noFill();
ellipse (288, 431, 22, 22);
noStroke();
fill(233,206,167);
rect(272,430,32,19);
stroke(52,41,19);
strokeWeight(2);
noFill();
ellipse (318, 421, 42, 42);
ellipse (258, 421, 42, 42);
noStroke();
fill(139,24,26);
ellipse (288, 445, 21, 14);
noStroke();
fill(206,176,137);
triangle (288, 423, 283, 434, 293,434);
noStroke();
fill(52,41,19);
rect(319,435,0.86,3.7);
rect(256,435,0.86,3.7);
stroke(52,41,19);
strokeWeight(0.86);
line(260,435,261,438);
line(253,434,252,437);
line(316,434,315,438);
line(323,435,324,438);
//jank mask
stroke(255);
strokeWeight(40);
noFill();
ellipse (300, 270, 415, 415);
//zzz
stroke(255);
strokeWeight(7);
line(249, 284, 285, 284);
line(249, 313, 284, 285);
line(249, 313, 284, 313);
strokeWeight(10);
line(320,239,385,239);
line(320,290,385,239);
line(320, 292,391, 292);
strokeWeight(15);
line(368,115,487,115);
line(374,201,487,115);
line(374,203,505,203);
//arms
stroke(233,206,167);
strokeWeight(30);
line(365,438,385,520);
line(385,520,355,590);
line(212,438,190,500);
line(190,500,220,580);
//fingers
//stroke(12,43,33);
strokeWeight(5);
line(332, 590, 355, 585);
line(342,611,355,590);
line(338,605,350,590);
line(348, 615, 360,590);
line(358, 613, 364, 590);
line(220,580,230,600);
line(218,560,240, 590);
line(210, 560, 205, 600);
line(214, 560, 215, 605);
line(214, 560, 215, 605);
line(205, 555, 240, 570);
}
It was interesting to first create the illustration through Adobe Illustrator and then have to translate the graphics into a code-based product. It was frustrating to not have the full freedom I get with a vector-based program, but it was interesting to have to think in terms of shapes on shapes.