URL of experiment:
Description of the problem:
I am trying to debug my online study. One of my problems is:
On pavlovia I receive the following error: “when defining color -> unknown named color [1.000, 0.004, 1.000]”. I want to show a bi-colored pixel square with three loops and changing color pairs during every loop. I can not find this color in my JS or my xlsx files
I am glad about every helpfull suggestion.
Ah – I’ve spotted the issue. I had a problem with colours which I’ve solved by defining them at the start of the experiment.
e.g. Begin Experiment
Python - red=[1,-1,-1]
Then use red without quotes in your code.
This is in my crib sheet.
Unfortunately this does not seem to solve my problem. I tried to adapt it, but I stille get the following message:
` Unfortunately we encountered the following error:
when defining a color
unknown named color: [0.0, -1.0, -1.0]
Try to run the experiment again. If the error persists, contact the experiment designer.`
Does it maybe have to do with an undefinded color space (I want to use rgb)?
Is it possible to use decimal numbers for the color space? Could that be the problem?
This is how I have defined colors from the Builder View using the code component:
I’m not too sure about decimals.
Hi Vinzenz, did you solve the problem with the colors? I have the same problem.