Relative Content

Tag Archive for javascriptimageaudiocollision-detectionp5.js

Mouse Hovering/Mouse Clicked over image p5.js

I am trying to create the experience of playing a hand drum. The idea is that the user picks up the drum mallet, hovers it above the drum, and if the user clicks again the drum plays the audio. Is this possible? I have found a lot of resources about shapes, specifically ellipses, but not a lot of information about images.