Q) Changing the background color

2,786 views
Skip to first unread message

Yune-Sang Lee

unread,
May 10, 2012, 11:03:50 AM5/10/12
to psychop...@googlegroups.com
Hello python users,

I'd like to change the background color from its default (gray) to black (see screen capture for the current setup), but I can't quite figure this out as I'm a novice user for both python and psychopy.
If anyone knows the trick, please help me.

best,
ysl


psychopy_screen.png

Andre Gouws

unread,
May 10, 2012, 12:35:50 PM5/10/12
to psychop...@googlegroups.com
In coder view:

Where you set up your window (visual.Window) simply add the
keyword/keyarg: rgb=(-1,-1,-1)

e.g. change the following:

myWin = visual.Window((600,600), allowGUI=False,
monitor='testMonitor',winType='pyglet', units='norm')

to:

myWin = visual.Window((600,600), allowGUI=False,
monitor='testMonitor',winType='pyglet', units='norm', rgb=(-1,-1,-1))


in Builder:

click experiment Settings (white arrows on purple button) and change
color from [0,0,0] to [-1,-1,-1]



Andre'
> --
> You received this message because you are subscribed to the Google Groups
> "psychopy-users" group.
> To post to this group, send email to psychop...@googlegroups.com.
> To unsubscribe from this group, send email to
> psychopy-user...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/psychopy-users?hl=en.
>
>
Reply all
Reply to author
Forward
0 new messages