I would like to do the following;
After drawing a circle in a canvas, which have an "x" and "y" value to position it from it's center.
Would it be possible to listen for an event on that circle? For exemple: When I put my mouse over that circle it would display the "x" and "y" values.
Is there such a thing as event listening over drawings inside canvas element?
I have seen some pretty slick website that are full screened canvas and the elements inside react with the mouse position.
So I guess it is somehow possible. Maybe not as simple as what I'm explaining.
The other approach I tough of, since I already know the values of "x" and "y", would be to listen at the position of the mouse and if it match's a certain area of the circle then I could trigger an event.
But this option involve more programming then just a mouseHover event listening. I'm fairly new to canvas element and I would like to save time on this project.