void setup() { size(500,500); } void draw() { background(215); //FACE fill(220,20,144); ellipse(mouseX,mouseY,130,110); //EYES fill(255); ellipse(mouseX-40,mouseY,30,30); fill(0); ellipse(mouseX-40,mouseY,10,10); fill(255); ellipse(mouseX+40,mouseY,30,30); fill(0); ellipse(mouseX+40,mouseY,10,10); //MOUTH line(mouseX-20,mouseY+20,mouseX,mouseY+40); line(mouseX+20,mouseY+20,mouseX,mouseY+40); line(mouseX-20,mouseY+20,mouseX+20,mouseY+20); }
|