xxxxxxxxxx
void setup(){
size(900,900);
background(20,100,150);
}
void draw(){
//top left
if(pmouseX<450 && pmouseY<450){
//teeth
fill(225);
stroke(30);
strokeWeight(5);
ellipse(400,550,25,50);
ellipse(425,550,25,50);
ellipse(450,550,25,50);
ellipse(475,550,25,50);
ellipse(500,550,25,50);
//mouth
strokeWeight(5);
line(350,550,550,550);
line(350,550,325,575);
line(550,550,575,575);
//block
noStroke();
fill(20,100,150);
rect(350,498,200,50);
//chin shadow
fill(20,80,130);
ellipse(450,595,90,20);
//nose - top
fill(70);
triangle(400,485,500,485,450,475);
//main nose
fill(30);
triangle(400,485,500,485,450,530);
fill(20,100,150);
//bloking
ellipse(425,505,10,15);
ellipse(475,505,10,15);
//eyes - shadow
fill(20,80,130);
ellipse(400,400,120,120);
ellipse(500,400,120,120);
//eyes
//stroke(30);
fill(255);
ellipse(400,400,100,100);
ellipse(500,400,100,100);
noStroke();
fill(20,150,100);
ellipse(380,400,50,50);
ellipse(480,400,50,50);
//color
fill(20);
ellipse(380,400,40,40);
ellipse(480,400,40,40);
//highlight
fill(255);
ellipse(390,400,20,20);
ellipse(490,400,20,20);
//block
noStroke();
fill(20,100,150);
rect(300,300,300,100);
//highlights
fill(20,80,130);
triangle(420,250,500,250,590,290);
triangle(420,250,500,250,565,325);
triangle(420,250,500,250,540,375);
triangle(420,250,500,250,520,400);
triangle(420,250,500,250,500,400);
triangle(420,250,500,250,450,375);
triangle(420,250,500,250,420,325);
triangle(420,250,500,250,400,290);
triangle(420,250,500,250,380,270);
//high highlights
fill(20,100,150);
triangle(450,250,480,250,520,265);
triangle(450,250,480,250,510,290);
triangle(450,250,480,250,500,315);
triangle(450,250,480,250,485,315);
triangle(450,250,480,250,455,290);
triangle(450,250,480,250,420,265);
//cheek left
//top
fill(20,80,130);
triangle(300,485,300,450,230,500);
triangle(300,485,300,450,230,540);
triangle(320,470,320,430,250,440);
//top fill block
fill(20,100,150);
triangle(350,485,300,450,250,500);
triangle(300,485,300,450,250,540);
triangle(320,470,320,430,270,440);
//right cheek
//top
fill(20,80,130);
triangle(600,485,600,450,670,500);
triangle(600,485,600,450,670,540);
triangle(580,470,580,430,650,440);
//top fill block
fill(20,100,150);
triangle(550,485,600,450,650,500);
triangle(600,485,600,450,650,540);
triangle(580,470,580,430,630,440);
//brow
stroke(30);
line(340,400,560,400);
}
///////////////////////////////////////////////////
/////top right
if(pmouseX>450 && pmouseY<450){
//teeth
fill(225);
stroke(30);
strokeWeight(5);
ellipse(400,550,25,50);
ellipse(425,550,25,50);
ellipse(450,550,25,50);
ellipse(475,550,25,50);
ellipse(500,550,25,50);
//mouth
strokeWeight(5);
line(350,550,550,550);
line(350,550,325,575);
line(550,550,575,575);
//block
noStroke();
fill(20,100,150);
rect(350,498,200,50);
//chin shadow
fill(20,80,130);
ellipse(450,595,90,20);
//nose - top
fill(70);
triangle(400,485,500,485,450,475);
//main nose
fill(30);
triangle(400,485,500,485,450,530);
fill(20,100,150);
//bloking
ellipse(425,505,10,15);
ellipse(475,505,10,15);
//eyes - shadow
fill(20,80,130);
ellipse(400,400,120,120);
ellipse(500,400,120,120);
//eyes
//stroke(30);
fill(255);
ellipse(400,400,100,100);
ellipse(500,400,100,100);
fill(20,150,100);
ellipse(420,400,50,50);
ellipse(520,400,50,50);
//color
fill(20);
ellipse(420,400,40,40);
ellipse(520,400,40,40);
//highlight
fill(255);
ellipse(430,400,20,20);
ellipse(530,400,20,20);
//block
noStroke();
fill(20,100,150);
rect(300,300,300,100);
//highlights
fill(20,80,130);
triangle(420,250,500,250,590,290);
triangle(420,250,500,250,565,325);
triangle(420,250,500,250,540,375);
triangle(420,250,500,250,520,400);
triangle(420,250,500,250,500,400);
triangle(420,250,500,250,450,375);
triangle(420,250,500,250,420,325);
triangle(420,250,500,250,400,290);
triangle(420,250,500,250,380,270);
//high highlights
fill(20,100,150);
triangle(450,250,480,250,520,265);
triangle(450,250,480,250,510,290);
triangle(450,250,480,250,500,315);
triangle(450,250,480,250,485,315);
triangle(450,250,480,250,455,290);
triangle(450,250,480,250,420,265);
//cheek left
//top
fill(20,80,130);
triangle(300,485,300,450,230,500);
triangle(300,485,300,450,230,540);
triangle(320,470,320,430,250,440);
//top fill block
fill(20,100,150);
triangle(350,485,300,450,250,500);
triangle(300,485,300,450,250,540);
triangle(320,470,320,430,270,440);
//right cheek
//top
fill(20,80,130);
triangle(600,485,600,450,670,500);
triangle(600,485,600,450,670,540);
triangle(580,470,580,430,650,440);
//top fill block
fill(20,100,150);
triangle(550,485,600,450,650,500);
triangle(600,485,600,450,650,540);
triangle(580,470,580,430,630,440);
//brow
stroke(30);
line(340,400,560,400);
}
//////////////////////////////////////////////////////////////
////////////////////////////////////////////////////
//bottom left
if(pmouseX<450 && pmouseY>450){
//teeth
fill(225);
stroke(30);
strokeWeight(5);
ellipse(400,550,25,50);
ellipse(425,550,25,50);
ellipse(450,550,25,50);
ellipse(475,550,25,50);
ellipse(500,550,25,50);
//mouth
strokeWeight(5);
line(350,550,550,550);
line(350,550,325,575);
line(550,550,575,575);
//block
noStroke();
fill(20,100,150);
rect(350,498,200,50);
//chin shadow
fill(20,80,130);
ellipse(450,595,90,20);
//nose - top
fill(70);
triangle(400,485,500,485,450,475);
//main nose
fill(30);
triangle(400,485,500,485,450,530);
fill(20,100,150);
//bloking
ellipse(425,505,10,15);
ellipse(475,505,10,15);
//eyes - shadow
fill(20,80,130);
ellipse(400,400,120,120);
ellipse(500,400,120,120);
//eyes
//stroke(30);
fill(255);
ellipse(400,400,100,100);
ellipse(500,400,100,100);
noStroke();
fill(20,150,100);
ellipse(380,415,50,50);
ellipse(480,415,50,50);
//color
fill(20);
ellipse(380,415,40,40);
ellipse(480,415,40,40);
//highlight
fill(255);
ellipse(390,415,20,20);
ellipse(490,415,20,20);
//block
noStroke();
fill(20,100,150);
rect(300,300,300,100);
//highlights
fill(20,80,130);
triangle(420,250,500,250,590,290);
triangle(420,250,500,250,565,325);
triangle(420,250,500,250,540,375);
triangle(420,250,500,250,520,400);
triangle(420,250,500,250,500,400);
triangle(420,250,500,250,450,375);
triangle(420,250,500,250,420,325);
triangle(420,250,500,250,400,290);
triangle(420,250,500,250,380,270);
//high highlights
fill(20,100,150);
triangle(450,250,480,250,520,265);
triangle(450,250,480,250,510,290);
triangle(450,250,480,250,500,315);
triangle(450,250,480,250,485,315);
triangle(450,250,480,250,455,290);
triangle(450,250,480,250,420,265);
//cheek left
//top
fill(20,80,130);
triangle(300,485,300,450,230,500);
triangle(300,485,300,450,230,540);
triangle(320,470,320,430,250,440);
//top fill block
fill(20,100,150);
triangle(350,485,300,450,250,500);
triangle(300,485,300,450,250,540);
triangle(320,470,320,430,270,440);
//right cheek
//top
fill(20,80,130);
triangle(600,485,600,450,670,500);
triangle(600,485,600,450,670,540);
triangle(580,470,580,430,650,440);
//top fill block
fill(20,100,150);
triangle(550,485,600,450,650,500);
triangle(600,485,600,450,650,540);
triangle(580,470,580,430,630,440);
//brow
stroke(30);
line(340,400,560,400);
}
////////////////////////////////////////
//bottom right
if(pmouseX>450 && pmouseY>450){
//teeth
fill(225);
stroke(30);
strokeWeight(5);
ellipse(400,550,25,50);
ellipse(425,550,25,50);
ellipse(450,550,25,50);
ellipse(475,550,25,50);
ellipse(500,550,25,50);
//mouth
strokeWeight(5);
line(350,550,550,550);
line(350,550,325,575);
line(550,550,575,575);
//block
noStroke();
fill(20,100,150);
rect(350,498,200,50);
//chin shadow
fill(20,80,130);
ellipse(450,595,90,20);
//nose - top
fill(70);
triangle(400,485,500,485,450,475);
//main nose
fill(30);
triangle(400,485,500,485,450,530);
fill(20,100,150);
//bloking
ellipse(425,505,10,15);
ellipse(475,505,10,15);
//eyes - shadow
fill(20,80,130);
ellipse(400,400,120,120);
ellipse(500,400,120,120);
//eyes
//stroke(30);
fill(255);
ellipse(400,400,100,100);
ellipse(500,400,100,100);
fill(20,150,100);
ellipse(420,415,50,50);
ellipse(520,415,50,50);
//color
fill(20);
ellipse(420,415,40,40);
ellipse(520,415,40,40);
//highlight
fill(255);
ellipse(430,415,20,20);
ellipse(530,415,20,20);
//block
noStroke();
fill(20,100,150);
rect(300,300,300,100);
//highlights
fill(20,80,130);
triangle(420,250,500,250,590,290);
triangle(420,250,500,250,565,325);
triangle(420,250,500,250,540,375);
triangle(420,250,500,250,520,400);
triangle(420,250,500,250,500,400);
triangle(420,250,500,250,450,375);
triangle(420,250,500,250,420,325);
triangle(420,250,500,250,400,290);
triangle(420,250,500,250,380,270);
//high highlights
fill(20,100,150);
triangle(450,250,480,250,520,265);
triangle(450,250,480,250,510,290);
triangle(450,250,480,250,500,315);
triangle(450,250,480,250,485,315);
triangle(450,250,480,250,455,290);
triangle(450,250,480,250,420,265);
//cheek left
//top
fill(20,80,130);
triangle(300,485,300,450,230,500);
triangle(300,485,300,450,230,540);
triangle(320,470,320,430,250,440);
//top fill block
fill(20,100,150);
triangle(350,485,300,450,250,500);
triangle(300,485,300,450,250,540);
triangle(320,470,320,430,270,440);
//right cheek
//top
fill(20,80,130);
triangle(600,485,600,450,670,500);
triangle(600,485,600,450,670,540);
triangle(580,470,580,430,650,440);
//top fill block
fill(20,100,150);
triangle(550,485,600,450,650,500);
triangle(600,485,600,450,650,540);
triangle(580,470,580,430,630,440);
//brow
stroke(30);
line(340,400,560,400);
}
}