| Reference | Downloads | Github

Online experiment does not take color parameter from the condition file

URL of experiment:

Description of the problem: I am trying to display a rectangle (polygon stimuli), which changes color every repeats. The color parameter is feeded from the condition file.

The setup of polygon is below:

My condition file looks like this, which the second column is the parameter for the color of the rectangle.
Screen Shot 2022-01-12 at 5.05.46 PM

I kept getting the error below.
Screen Shot 2022-01-12 at 5.23.30 PM

I have searched the solution for a while. And I tried to change the column “htbackground” into tuple (eg. (0.804,-0.239,-0.992), or add a “$” for the column “htbackground” (eg. $[0.804,-0.239,-0.992]). Unfortuntely none of them worked.

Any insights helps! Thanks in advance!

Try putting the three values into three columns htbackRed, htbackGreen and htbackBlue and then setting the colours as:


Dear Wakecarter,

It worked! Thank you so much for the prompt reply.