Hovering over an image and changing colour

Hey so I’m trying to make a code that basically is made up of all the states in australia, so when i hover over the (image) i’ve input into the code (one image for each state) they will change colour.

what is the easest way to do that

One way is to loop through the images to draw them and, if the mouse is over an image, use tint() before and noTint() after to colorize it.


If you are working with a set of irregular shapes and need collision information on them, you could use the Picking library