Dear Forum- I could use some help trying to get demo code working where colors add (for use with anaglyph glasses). I’m surely doing something old-fashioned and wrong, but any idea why the code snippet below does not show red and blue rectangles, with their intersection magenta (red+blue)? Thanks, Steve Engel
–
import psychopy.visual
import psychopy.event
win = psychopy.visual.Window(
screen=0,
size=[400, 400],
units=“pix”,
fullscr=False,
colorSpace=‘rgb1’,
blendMode=‘add’,
color=[0, 0, 0],
)
rect = psychopy.visual.Rect(
win=win,
units=“pix”,
width=200,
height=50,
opacity=1.0,
lineWidth=0.0,
colorSpace=‘rgb1’,
fillColor=[1, 0, 0],
)
rect2 = psychopy.visual.Rect(
win=win,
units=“pix”,
width=50,
height=200,
opacity=1.0,
lineWidth=0.0,
colorSpace=‘rgb1’,
fillColor=[0, 0, 1],
)
rect.draw()
rect2.draw()
win.flip()
psychopy.event.waitKeys()
win.close()