xxxxxxxxxx
111
function setup() {
createCanvas(700, 675);
}
//colors are rgb
function draw() {
//background
let c = color(mouseX-200, 100, 100);
background(c);
//neck
noStroke();
fill('#CA9A89');
//fill('#96855A');
rect(310, 450, 75, 50);
//neck shadow
fill('#A78377');
arc(347, 467, 75, 35, 0, PI);
//got the idea to do this from looking at Dev-Kalavadia's final
//submission
//face
noStroke();
fill('#CA9A89');
ellipse(350, 300, 300, 350);
//ears
arc(450, 280, 150, 100, PI+45, 90); //right ear
arc(250, 280, 150, 100, 90, PI+45); //left ear
//earrings
fill('#FFC107');
ellipse(195, 300, 10, 10);
ellipse(505, 300, 10, 10);
//eyes
fill(255);
noStroke(); //for entire thing
ellipse(295, 250, 70, 80);
ellipse(405, 250, 70, 80);
fill('#774E40');
ellipse(412, 275, 30, 30);
ellipse(305, 273, 30, 30);
//eyebrows
fill('#442B22');
rect(275, 185, 40, 10); //left
rect(385, 185, 40, 10); //right
//nose
stroke('#442B22');
strokeWeight(3);
line(360,275,360,325); //vertical line
line(335,325, 360, 325);
//mouth
fill('pink');
stroke('#AA2955');
arc(350, 375, 125, 75, 0, PI);
line(288,375, 413, 375);
//shirt
noStroke();
fill('rgb(243,243,172)');
rect(200, 500, 300, 400, 50);
stroke('rgb(219,219,151)');
line(265,575, 265, 675);
line(440,575, 440, 675);
//hair
noStroke();
fill('#442B22');
arc(350, 175, 190, 100, PI, 0);
circle(255, 100, 150);
circle(445, 100, 150);
//camera
noFill();
stroke('black');
arc(350, 500, 190, 100, 0, PI);
fill('grey');
noStroke();
rect(335, 535, 30, 10)
rect(310, 543, 80, 55)
fill('black');
ellipse(350, 570, 20, 20);
noFill();
stroke('black');
ellipse(350, 570, 35, 35);
fill('black');
ellipse(375, 557, 5, 5);
textSize(14);
text('35', 315, 590);
//camera flash
if (mouseIsPressed){
//referenced vidianindhita's tutorial
noStroke();
fill('white');
ellipse(380, 550, 50, 50);
}
//sun
textSize(48);
text("☀️", mouseX, mouseY);
}