p5.js-editor icon indicating copy to clipboard operation
p5.js-editor copied to clipboard

Sound Effect example uses ellipse with 'radius' parameter instead of height and width

Open pippinbarr opened this issue 10 years ago • 0 comments

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.

pippinbarr avatar Sep 21 '15 23:09 pippinbarr