Changing background colour
in OpenSesame
Hello,
I've created an experiment in which I present some photo stimuli and record some keyboard responses. However, for a specific set of stimuli I want them to be presented on black background and the other set on white background. The entire experiment in on white background so I only need to change one of them. I am using one sketchpad for each set (and the image title is based on a variable which is randomly assigned earlier on during the loop).
I've tried to include both of these scripts right before the sketchpad (in an inline script) and it doesn't work.
win.setColor('red') # Set window color
win.flip() # Update window
----- OR -------
exp.set('foreground', 'yellow')
exp.set('background', 'blue')
Anyone has any ideas how to solve this? Many thanks in advance.
Stef
Comments
I´m not an expert on coding. So, I think you can use the "draw rect element" on the sketchpad to fill the background, above it put your image.
I hope that was helpful.
Just tried that and it works. Thank you!
Hi Stef,
just to add on this.
`exp.set('background', 'blue')`should have worked. Maybe you haven't put it in the prepare phase of the inline_script?`
Eudard
Hi Eduard,
I tried this like 10 times and it didn't work. Still no idea why. It works with the draw rect element so I'm happy.
I do have another question, which I have posted here: http://forum.cogsci.nl/index.php?p=/discussion/5028/picture-and-question-simultaneously-on-the-screen/p1?new=1
Basically, can I show a picture and a multiple choice question at the same time on the screen?
Many thanks,
Stef