psychopy.org | Reference | Downloads | Github

Hexadecimal color strings not working

FYI: After a delayed upgrade from 1.84 to 1.90.1 (W7 & W8.1) I note that using hex values for colors no longer works as I’d expect. I didn’t find any relevant posts about this so thought I would let you know.

e.g.
on a text box
red
works fine for the color but
#ff0000
gives a strange cracked paint style color.

Same effects with
win.setColor(‘#A0A0A0’) - no longer works

and I had to change it to

win.setColor((160, 160, 160), ‘rgb255’)

Have I missed something in the release notes about colorspaces or is it a bug?