xxxxxxxxxx
86
//John Armella _ Self_Portrait
function setup() {
createCanvas(400, 500);
}
function mouseClicked() {
save ("Sef_Portrait_1.png ")//Self_Portrait_Version_1_Jonathan_Armella
}
function draw() {
background("#B85D2B");
//Body
fill('#222222') //Black
rectMode(CENTER)
rect (200,360,250,300,10);
//Face
noStroke();//Face
fill('#F8E36E');//Beige
ellipse(200,200,300,200); //Irregular Circle for face
//Hands
ellipse(290,390,50);
ellipse(110,390,50);
//Hat
fill('#222222') //Black
rectMode(CENTER);
rect(200,120,250,50); //Latter half of hat
ellipse(200,90,240,100); //Top part of hat
//Hatlogo
fill('#BDBEBF') //Gray
rectMode(CENTER);
rect(200,120,30,30);
//hat logo inside
fill('#F5B625') //Orange
ellipseMode(CENTER);
ellipse(200,120,20);
//Eyes
fill("FFFFFF") //White
ellipse(260,200,50); //Right eye
ellipse(130,200,50); //Left eye
//Pupil
fill('#222222') //Black
ellipse(260,200,20); //Right pupil
ellipse(130,200,20); //Left pupil
//Mouth
strokeWeight(2);
stroke("#222222"); //Black
line(260,250,130,250);//Mouth
//Eyebrows
line(280,170,230,170); //Right eyebrow
line(160,170,110,170); //Left eyebrow
}