Hi! I’m trying to figure out how I would make the eyes of my stick figure blink. Please help me figure it out.
My code is:
//Drawing a character
void setup(){
size(400,400);
background(200,255,100);
}
void draw(){
background(100,100,200);
smooth();
strokeWeight(3);
rect(85,100,30,65); //body x y w h
ellipse(100,100,50,50); //head
ellipse(90,95,20,20); //left eye
ellipse(110,95,20,20); //right eye
fill(#3662E0);
ellipse(90,95,10,10); //left inside
ellipse(110,95,10,10); //right inside
fill(255);
ellipse(100,115,10,5); //mouth
line(85,120,70,160); //left arm
line(115,120,130,160); //right arm
line(95,168,84,200); //left leg
line(110,168,125,200);
ellipse(71,163,15,15);
text((mouseX + “,” + mouseY), 13,13);
}