It was a hard process for me to create this self portrait as I have never coded before; it was a series of trial and error in order to get things in the right order and place. I drew inspiration from the students who submitted their self portraits before me and just focused on trying to make the objects connect.
function setup() {
createCanvas(500, 500);
background(150,100,100);
angleMode(DEGREES)
smooth();
}
function draw() {
//hair
strokeWeight(0);
fill(10,50,100);
ellipse(250,165,220,220);
rect(145,165,210,300);
//ears
strokeWeight(0);
fill(255,230,200);
ellipse(150,210,30,45);
ellipse(350,210,30,45);
//head
strokeWeight(0);
fill(255,230,200);
ellipse(250,190,190,200);
//hair(front)
strokeWeight(0);
fill(10,50,100);
ellipse(285,120,110,100);
//glasses
strokeWeight(5);
fill(255,230,200);
ellipse(205,200,60,60);
ellipse(295,200,60,60);
line(242,205,257,205);
strokeWeight(5);
noFill();
arc(180,198,60,20,150,175);
arc(330,198,60,20,25,78);
//smile
arc(266,250,40,30,20,90);
//eyes
strokeWeight(0);
fill(256);
ellipse(204,202,30,30);
ellipse(295,202,30,30)
//pupils
strokeWeight(0);
fill(0);
ellipse(204,202,15,15);
ellipse(295,202,15,15)
//eyelash
strokeWeight(2)
fill(0)
line(190,190,186,186)
line(304,186,308,181)
}