Change opacity of image when hover mouse over

Ah yes, instead you have to use:

if (one.contains(mouse) && mouse.getPressed()[0] === 1) {
  psychoJS.experiment.addData('ratingScore', '1')
}