Hi Michael, thanks for the reply, and sorry for being vague. I’ve uploaded one of the condition files which shows that, for Block 1, there are 24 images in 3 conditions “Watch”, “Rethink”, and “Distract”. These conditions are coded in the “task” column #4. All 8 images associated with each of these conditions would have the same specific border, for instance green vs. red. vs. blue. Each image would also be preceded by a ‘Cue’ screen, which would alert the participant to which condition they were in (Watch, Rethink, or Distract). What I’m looking for is a way to put a border around the edges of the screen when the cue slide is on screen, and then an identical border around the edges of the picture screen. That way the participant has a visual reminder of which condition they are in.
Hence, in terms of coding, I’m thinking that there must be a way to feed in a border color variable, in much the same way that you would pass “setText” to a visual.TextStim component or setImage to a or visual.ImageStim component. I’ve seen some posts about trying to create a border using ShapeStim, so maybe I could feed the variable for the condition color into setColor. However, I’m still not sure how to get ShapeStim to work to give me a border in the first place.
Here are snippets of the cue and image code blocks taken from the initialization and within the “TrialHandler” loop, respectively:
RegulationCue = visual.TextStim(win=win, name='RegulationCue',
pos=(0, 0), height=0.1, wrapWidth=None, ori=0,
color='white', colorSpace='rgb', opacity=1,
image = visual.ImageStim(
ori=0, pos=(0, 0), size=(2,2),
color=[1,1,1], colorSpace='rgb', opacity=1,
texRes=128, interpolate=True, depth=-1.0)
Any thoughts? Please let me know if you need any more details.
group1_block1_list.csv (865 Bytes)