Skip to content

Commit da234cc

Browse files
Toddpeircej
Todd
authored andcommitted
BF: Handle colorSpace "named" as "rgb"
1 parent 1aec9ab commit da234cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

psychopy/visual/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def setColor(obj, color, colorSpace=None, operation='',
277277
" that has no known Window object")
278278
# convert new obj.color to rgb space
279279
newColor = getattr(obj, colorAttrib)
280-
if colorSpace in ['rgb', 'rgb255']:
280+
if colorSpace in ['rgb', 'rgb255', 'named']:
281281
setattr(obj, rgbAttrib, newColor)
282282
elif colorSpace == 'dkl':
283283
if (win.dkl_rgb is None or

0 commit comments

Comments
 (0)