OS System Info:
Operating System: Windows-10-10.0.26200-SP0
PsychoPy version PsychoPy 2025.2.4
Python Version: 3.10.11
Standard Standalone Installation? (yes
URL of experiment: Pavlovia
Do you want it to also run locally? (if possible
What are you trying to achieve?:
I want to show a colored polygon on a black background
What did you try to make it work?:
I set the background color in the settings/screen tab to black, which inserts $(-1.0000, -1.0000, -1.0000) and the color of the polygon by setting the appearance/fill color tab.
Link to the most relevant existing thread you have found:
What specifically went wrong when you tried that?
First of all when running the script locally through psychopy, everyghing seems to work fine, the background is black and the polygon has the color I pick.
On pavlovia instead:
If I set the polygon color to white, i.e. $(1.0000, 1.0000, 1.0000) the background appears grayish, the polygon is black
If I set the polygon to say red, i.e. $(1.0000, -1.0000, -1.0000) I get the following error:
- the color components should all belong to [-1, 1]
I thought that maybe somehow on Pavlovia color values are coded between 0 and 1, so I tried to set the background color to gray $(0.0039, 0.0039, 0.0039), and the polygon to red without the negative values $(1.0000, 0.0000, 0.0000). Now the background actually looks black on Pavlovia and I don’t get error messages, which is consistent with my hypothesis, but the polygon looks black instead of red. What’s really bizarre is that if I set the color to red using the word red it looks OK.
Thank you in advance!