hello!
When you draw an ellipse, use ellipsemode CENTER.
Then the x,y of the ellipse is the center of the ellipse.
Let radiusX, radiusY be the 2 radius of the ellipse.
Then you can say:
- if ( abs(mouseX-x) < radiusX &&
- abs(mouseY-y) < radiusY ) {
- // inside
- }
This is not exact of course since it gives you the rect around the oval but anyway.
Greetings, Chrisir