I’m having trouble conditionally changing the colour of Image stim when running demos on Pavlovia.
Offline, I can do this easily using something like:
if …(button is clicked)
…stimName.color = ‘red’
However, when manually converting this code into JS, I’ve only managed to get this to work online when Polygon stim are used (Image stim simple won’t change colour):
stimName.fillColor = new util.Color(‘red’);