xxxxxxxxxx
function setup() {
createCanvas(550, 600);
}
function draw() {
background(173, 191, 176);
if (mouseX < 225 / 2) {
stroke('#f2a3a2');
strokeWeight(10);
//silmät
noStroke();
fill(255, 255, 255);
ellipse(230, 500 / 2, 50, 50);
noStroke();
fill(93, 156, 169);
ellipse(230, 500 / 2, 20, 20);
//aurinkolasien kehykset takaisin
stroke('#f2a3a2');
//aurinkolasit
fill(255, 255, 255, 99);
ellipse(200, 500 / 2, 100, 100);
//aurinkolasien kehykset
stroke('#f2a3a2');
strokeWeight(10);
//silmät
noStroke();
fill(255, 255, 255);
ellipse(380, 500 / 2, 50, 50);
noStroke();
fill(93, 156, 169);
ellipse(380, 500 / 2, 20, 20);
//aurinkolasien kehykset takaisin
stroke('#f2a3a2');
//aurinkolasit
fill(255, 255, 255, 60);
ellipse(350, 500 / 2, 100, 100);
//väliosa
rect(500 / 2, 500 / 2, 50, 5);
//huulet
noFill();
arc(280, 350, 80, 0, 0, PI);
//pisamat
fill(0, 0, 0);
noStroke();
ellipse(250, 310, 5, 5);
ellipse(290, 290, 5, 5);
ellipse(310, 310, 5, 5);
//ellipse(210, 330, 5, 5);
//ellipse(230, 320, 5, 5);
//ellipse(350, 330, 5, 5);
}
else
{
stroke('#f2a3a2');
strokeWeight(10);
//silmät
noStroke();
fill(255, 255, 255);
ellipse(200, 500 / 2, 50, 50);
noStroke();
fill(93, 156, 169);
ellipse(200, 500 / 2, 20, 20);
//aurinkolasien kehykset takaisin
stroke('#f2a3a2');
//aurinkolasit
fill(255, 255, 255, 99);
ellipse(200, 500 / 2, 100, 100);
//aurinkolasien kehykset
stroke('#f2a3a2');
strokeWeight(10);
//silmät
noStroke();
fill(255, 255, 255);
ellipse(350, 500 / 2, 50, 50);
noStroke();
fill(93, 156, 169);
ellipse(350, 500 / 2, 20, 20);
//aurinkolasien kehykset takaisin
stroke('#f2a3a2');
//aurinkolasit
fill(255, 255, 255, 60);
ellipse(350, 500 / 2, 100, 100);
//väliosa
rect(500 / 2, 500 / 2, 50, 5);
//huulet
stroke('#f2a3a2');
fill(255, 255, 255);
strokeWeight(10);
arc(280, 350, 80, 60, 0, PI);
line(240,350,320,350);
//pisamat
fill(0, 0, 0);
noStroke();
ellipse(250, 310, 5, 5);
ellipse(290, 290, 5, 5);
ellipse(310, 310, 5, 5);
}
}