URL of experiment:
Description of the problem:
I am trying to create an experiment in the Builder to be run locally and on Pavlovia, where the fill color of some shapes are dynamically set using the conditions CSV file. I have four variables for four boxes (e.g. ‘source1_prac_color’, ‘source2_prac_color’) in the CSV file that specify the colors as an array (e.g. [1,0,0]). I am specifying the colors by simply writing $sourceX_prac_color into the fill color box in the Builder for each of these shapes…
When I try running the experiment locally in PsychoPy, I have no problem displaying these colors. However, when I push the experiment online and try piloting on Pavlovia, I get the following error:
Unfortunately we encountered the following error:
- when defining a color
- unknown named color: ,
Try to run the experiment again. If the error persists, contact the experiment designer.
I have also tried replacing the arrays with text like ‘red’ and ‘green’ — This gets past the error, but the boxes will only appear black rather than in the colors that I specified.
I’ve also tried including separate variables for each of the values in the array (i.e. three variables like source1R, source1G, source1B — and then setting the fill color in the builder to [$source1R, $source1G, $source1B]), but this returns an error saying that the colors need to be specified as an array of 3 numbers.
Any advice or ideas would be very much appreciated!