processing / p5.js-editor

Deprecated desktop editor for p5.js
https://p5js.org
MIT License
338 stars 91 forks source link

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

Open pippinbarr opened 8 years ago

pippinbarr commented 8 years ago

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.