Error in Pavlovia: the color components should all belong to [-1, 1] - can't find the origin of the mistake

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Sonoma 14.2.1
PsychoPy version (e.g. 2024.2.4 Py 3.8): 2025.2.4beta
Standard Standalone Installation? (y/n) If not then what?:
URL of experiment: https://run.pavlovia.org/TimoBuchholz/npq_bias_italian
Do you want it to also run locally? (y/n) n
What are you trying to achieve?:

Make the experiment run at all in Pavlovia. I get the error message “the color components should all belong to [-1, 1]”.

What did you try to make it work?:

I checked several threads here on the forum and changed all my color settings to within [-1,1]. I went through the js code by hand several time and searched for any mentions of “color” but none seem to specify a setting that is outside of that range. I reset the cache several times. Using the developer tools doesn’t help because it doesn’t point me to the line in my js code that caused the problem.

Link to the most relevant existing thread you have found:

What specifically went wrong when you tried that?:
I get the error message “the color components should all belong to [-1, 1]”.

Hi, I’d really appreciate your help. I’m trying to get my experiment to run on Pavlovia, but I get the error message the color components should all belong to [-1, 1]. I set all my color settings to within that space, I manually searched through the js code to make sure I didn’t miss any instance of “color”; I cleared the cache and looked at the developer tools. The problem is that I can’t find a single instance of where a color setting is outside of the [-1, 1] range and the developer tools don’t point me to the offending part of the code either. So I’m really stuck because I don’t know where my problem even is. I’d be very happy for any help in solving this problem; even more if someone can tell me how to track these kinds of errors better with the developer tools - if I knew how to find the line that has the error I could probably solve it myself. Thanks!

Hi

It is not your JS code but your builder components in Psychopy. Most of them are set like this $(1.000,1.000,1.000) because they are hardcoded, there is no js translation for that.

Try typing the numbers like this 1,1,1 without the dollar sign and the brackets in any of your components that you are using.

Thanks so much! That worked. Really appreciate you helping me out over the weekend!