xxxxxxxxxx
168
function setup() {
createCanvas(400, 400);
}
function draw() {
var Hair = color(115, 59, 7);
var Hair2 = color(100, 54, 7);
var Hair3 = color(120, 60, 10);
var Skin = color(240, 205, 173);
var Nose = color(221, 172, 145, 200);
var Frame = color(mouseX, mouseY, 54)
var Shirt = color(255, 252, 240);
var Bee = color (235, 173, 73, 200);
background(135, 206, 235);
//TSHIRT
noStroke();
//CORE
fill(Shirt);
rect(width/2-100, height/2+34, 200, 300, 60, 60);
//ARMS
fill(Nose);
rect (width/2-100, height/2+118, 45, 200);//LEFT ARM SHADOW
rect (width/2+55, height/2+118, 45, 200);//RIGHT ARM SHADOW
fill(Skin);
rect (width/2-100, height/2+120, 45, 200);//LEFT SKIN
rect (width/2+55, height/2+120, 45, 200);//RIGHT SKIN
stroke(135, 206, 235);
strokeWeight(4);
line(width/2-55, height/2+100,width/2-60, height/2+200);//LEFT ARM
line(width/2-55, height/2+100,width/2-56, height/2+200);
line(width/2+55, height/2+100,width/2+60, height/2+200);//RIGHT ARM
line(width/2+55, height/2+100,width/2+56, height/2+200);
// SKIN
noStroke();
fill(Nose);
ellipse (width/2+1, height/2+35, 60, 40);//SHADOW NECK
fill(Skin);
rect(width/2-29, height/2-50, 60, 80); //NECK
ellipse (width/2+1, height/2+30, 60, 40);
fill(Skin);
fill(221, 172, 145, 200);
ellipse (width/2, height/3+5, 130, 170); //SHADOW MAIN
fill(Skin);
ellipse (width/2, height/3, 140, 170); //MAIN
ellipse (width/2-72, height/3+10, 20, 35); //LEFT EAR
ellipse (width/2+72, height/3+10, 20, 35); // RIGHT EAR
// HAIR
noStroke();
fill(Hair);
// RIGHT
circle (width/2, height/3-75, 30);
circle (width/2+20, height/3-60, 30);
fill(Hair2);
circle (width/2+14, height/3-67, 30);
circle (width/2+38, height/3-62, 30);
circle (width/2+38, height/3-50, 30);
fill(Hair3);
circle (width/2+38, height/3-50, 30);
circle (width/2+55, height/3-40, 30);
fill(Hair2);
circle (width/2+48, height/3-50, 30);
circle (width/2+23, height/3-70, 30);
fill(Hair2);
circle (width/2-62, height/3-20, 15);
circle (width/2+60, height/3-30, 20);
fill(Hair3);
circle (width/2+62, height/3-20, 15);
// LEFT
circle (width/2, height/3-60, 30);
circle (width/2-20, height/3-75, 30);
circle (width/2-14, height/3-67, 30);
fill(Hair2);
circle (width/2-38, height/3-65, 30);
circle (width/2-38, height/3-50, 30);
circle (width/2-55, height/3-40, 30);
fill(Hair);
circle (width/2-48, height/3-50, 30);
circle (width/2-60, height/3-30, 20);
circle (width/2-62, height/3-20, 15);
fill(Hair3);
circle (width/2-22, height/3-55, 30);
// FACE
//EYES
noStroke();
//WHITE
fill(255);
ellipse (width/2-23, height/3+2, 23, 30); //LEFT EYE
ellipse (width/2+23, height/3+2, 23, 30); //RIGHT EYE
//PUPIL
fill(0);
ellipse (width/2-23, height/3+5, 16, 20); //LEFT EYE
ellipse (width/2+23, height/3+5, 16, 20); //RIGHT EYE
//EYEBROW
noFill();
stroke(Hair);
strokeWeight(4);
arc(width/2-23, height/3+2, 50, 50, 5*PI/4, 7*PI/4-0.8); //LEFT EYE
arc(width/2+23, height/3+2, 50, 50, 5*PI/4+0.7, 7*PI/4-0.1); //RIGHT EYE
//NOSE
noStroke();
fill(Nose);
arc (width/2, height/3+20, 35, 35, PI/2, 3*PI/4);
//MOUTH
noStroke();
fill(255);
arc (width/2, height/3+45, 45, 35, 0, PI);
noFill();
stroke(0);
strokeWeight(0.1);
line (width/2-17, height/3+53, width/2+18,height/3+53 );
// GLASSES
//CIRCLES
stroke(Frame);
strokeWeight(2.5);
fill(0, 30);
circle (width/2+25, height/3+2, 40) //RIGHT
circle (width/2-25, height/3+2, 40) //RIGHT
noFill();
strokeWeight(4);
arc (width/2, height/3+20, 50, 50, 5*PI/4+0.6, 7*PI/4-0.6);
line (width/2-70, height/3-11,width/2-45, height/3);
line (width/2+70, height/3-11,width/2+45, height/3);
//NECKLACE
stroke(Bee);
strokeWeight(1);
line (width/2+2, height/3+150,width/2-30, height/3+101);
line (width/2+2, height/3+150,width/2+32, height/3+101);
fill(Bee);
stroke(0, 90);
ellipse (width/2+2, height/3+150, 3,7);
ellipse (width/2+2, height/3+150, 7,3);
}