function setup() {
createCanvas(600, 600);
background(114,160,193);
}
function draw() {
//arm1
noStroke();
fill(255,165,0);
rect(width/2+5,height/2+75,70,100,25,40,5,5);
fill(247,204,160);
rect(width/2+35,height/2+175,30,200);
//body
noStroke();
fill(255,165,0);
ellipse(width/2-30,height,195,550);
rect(width/2,height/2,60,500);
//head
noStroke();
fill(247,204,160);
arc(width/2,height/2,215,225,0,PI);
//filler
fill(114,160,193);
noStroke();
rect(width*5/8-5,height/2,75,90);
//face filler
fill(247,204,160);
arc(width/2+5,height/2+12,200,200,0,270);
//hair
fill(150,86,3);
noStroke();
arc(width/4+65,height/2-20,50,200,0,PI,CHORD);
//ear
fill(247,204,160);
ellipse(width/4+70,height/2+20,30,40);
//hair
fill(150,86,3);
arc(width/4+85,height/2-20,30,140,0,PI,CHORD);
arc(width/4+105,height/2-20,20,100,0,PI,CHORD);
//eyes
fill(255,255,255);
stroke(0,0,0);
strokeWeight(1);
ellipse(width/2,height/2+25,8,8);
ellipse(width/2+45,height/2+25,8,8);
//arm2
noStroke();
fill(255,165,0);
rect(width/4+50,height/2+80,65,110,70,70,5,5);
fill(247,204,160);
rect(width/4+70,height/2+190,35,200);
//mouth
noFill();
stroke(0,0,0);
strokeWeight(2);
curve(width/2+5,height/2+60,width/2+10,height/2+40,width/2+40,height/2+40,width/2+50,height/2+50)
//eyebrows
noFill();
stroke(0,0,0);
strokeWeight(4);
line(width/2+41,height/2+8,width/2+51,height/2+8);
line(width/2-5,height/2+8,width/2+5,height/2+8);
//#nocap
noStroke();
fill(43,43,43);
arc(width/2-5,height/2-20,220,200,PI,TWO_PI);
fill(35,35,35);
rect(width/2-120,height/2-40,230,30,5,5,5,5);
}
For my first project, I wanted to create as accurate of a drawing of myself, at least with what I knew about javascript. I often find myself not having a very bright expression, but I’ve come to accept that this is who I am. I am this.