p5.js-editor
p5.js-editor copied to clipboard
Sound Effect example uses ellipse with 'radius' parameter instead of height and width
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.