rachell-portrait
//Rachel Lu
//15-104 A
function setup() {
createCanvas(600, 600);
background('#fed176');
text("p5.js vers 0.9.0 test.", 10, 15);
}
function draw() {
background('#fed176');
//hair back
fill(0);
rect(140, 350, 335, 127);
//head
fill('#fcdac3');
noStroke();
ellipse(width/2, height/2, 300, 275);
//nose
fill('#f89a63');
ellipse(300, 350, 20, 10);
//nosering
stroke(150);
strokeWeight(2);
line(307, 351, 307, 354);
//cheeks
fill('#e4848c');
noStroke();
ellipse(225, 370, 30, 15);
ellipse(375, 370, 30, 15);
//glasses
noFill();
stroke(0);
strokeWeight(4);
ellipse(225, 320, 100);
ellipse(375, 320, 100);
arc(300, 320, 50, 15, PI, TWO_PI);
//eyes
arc(225, 330, 20, 10, PI, TWO_PI);
arc(375, 330, 20, 10, PI, TWO_PI);
//mouth
arc(300, 380, 20, 10, 0, PI);
//hair
strokeWeight(50);
arc(285, 460, 305, 600, PI, PI+HALF_PI);
arc(315, 460, 305, 600, PI+HALF_PI, TWO_PI);
//ears
fill('#fcdac3');
noStroke();
ellipse(160, 325, 40);
ellipse(440, 325, 40);
//earrings
stroke(150);
strokeWeight(2);
ellipse(160, 355, 3, 30);
ellipse(440, 355, 3, 30);
//glasses
noFill();
stroke(0);
strokeWeight(4);
ellipse(225, 320, 100);
ellipse(375, 320, 100);
arc(300, 320, 50, 15, PI, TWO_PI);
}
This is a self portrait, roughly drawing inspiration from Animal Crossing avatars. The features I found defining of me are my glasses and piercings, so I had to include those.