In the Sound Effect example the doorbell is drawn as an ellipse using the specified radius as its width and height, rather than 2*r, then means the doorbell highlights when the mouse is not actually over the drawn ellipse because the dist() function triggers based on the "real" radius.
In the Sound Effect example the doorbell is drawn as an ellipse using the specified radius as its width and height, rather than 2*r, then means the doorbell highlights when the mouse is not actually over the drawn ellipse because the dist() function triggers based on the "real" radius.