URL of experiment: https://run.pavlovia.org/ben.s/bctest/ (it’s in pilot-mode, so most-likely not visible)
Description of the problem:
For my experiment I need a modified Flanker-task with colored squares (red, yellow, green or blue) instead of arrows. I get the flanker- and target-colors for each trial from a variable in a CSV in rgb format (for example [1,-1,-1] for red). Offline everything works fine, but on Pavlovia a get an error message saying:
Unfortunately we encountered the following error:
- when defining a color
- unknown named color: $farbergb
Try to run the experiment again. If the error persists, contact the experiment designer.
I have two color variables in my CSV. One for the flankers and one for the target.
“farbergb” is the one for the target.
In the builder I put it as fill color for my rectangles as “$$farbergb” and set the update rate to “set every repeat”.
After googling around I also tried to remove one or both dollar signs, which only led to other error messages.
I also found a post, which said that you have to split the rgb value up in the three parts, but I’m not quite sure, how to implement that…
I’m not that deep into java-script so sorry if it is an easy-fixable bug and I just don’t get it.
Hope anyone can help me! Thank you!