Question about Functions, Booleans

Yes, you can use if/else to invoke certain functions depending on state of logic.

You said you did not want the ellipse drawn, so removing that call in the function solves that.

To check if mouse is hovering asteroid you want a function checkIfInsideAsteroid() that returns true when the mouse is positioned inside that object.

so in your function you can just say … (I am not sure how to declare func in python so this example is java)

void checkIfInsideAsteroid() {
  return (dist(mouseX,mouseY,pos.x,pos.y) <= diameter/2);
}

then you can say somewhere else …

if (checkIfInsideAsteroid()) //do something;