Hi there,
This demo might be helpful. Selection of multiple images per trial with the mouse - #3 by Becca
multiple images are selected and they change in opacity when selected. The same approach would apply to polygons and color (I don’t think you need such a lengthy custo JS component you can just use if mouse.isPressedIn
instead).
Becca