void setup(){
size(800,900);
}
void draw(){
background(150,160,150);
fill(0,0,0);
//circle
ellipse(450,400,130,130);
//x = wid y = hei
// make eyes glow
if(mouseX > 385 && mouseX < 518 && mouseY > 332){ // if cursor coordinates are within constraints (of creature), make eyes red
fill(255,0,0);
}
else if(mousePressed){
fill(0,0,0); //when the mouse button is held down, fill for eyes = black;
}
else{
fill(255,255,255);} // when not within constraints of creature and the mouse is not being pressed, make eyes white
//eye 1
rect(402,380,10,10,10);
//eye 2
rect(492,380,10,10,10);
for(int x=400; x<900; x+=25){ //loop squares until bottom
/*
alternating black and white fill
25 / 2 = 12 r1
50 / 2 = 25 r0
*/
if(x%2==0){fill(255,255,255);} // if r = 0, fill = w
else{fill(0,0,0);} // if r != 0, fill = b
rect(385,x,130,25);
}
fill(0,0,0);
rect(402,255,2,100);
ellipse(403,255,6,6); //antennae 1
rect(495,255,2,100);
ellipse(496,255,6,6); //antennae 2
}