How can I know the correspondence between -1:1 and 0:255 rgb color scales?

OS: Win10
PsychoPy version : v2020.2.5

What are you trying to achieve?:

In order to specify the colors of my stimuli in PsychoPy I have used the rgb scale that goes from -1 to 1.
Now I want to report those rgb values in a paper, but I would like to use the “normal” rgb 0:255 format. The problem is that I find no way to get/convert into those normal values.

What did you try to make it work?:

I could not find any online converter to do this conversion on the internet.
I have tried to right-click on the “Fill color” field of the components that have those rgb(-1:1) values to open the “color-picker” and check the corresponding RGB (0:255) values, but all parameters there are equal to “zero” when I do so.

I would appreciate any help with this issue. Thanks in advance!

Paula.

Pretty sure you can just take the value on the (-1, 1) scale, add 1, and multiply it by 127.5.

1 Like

It works! :slight_smile:
Thanks a lot!