I am making good progress with my visual search task and I have managed to create two sets of random distractors of Red and Green Letter T’s, however due to the code I have implemented, rather than use the entire screen, the distractors only appear in a small subset in the center of the screen
As you can see from the image the items are located relatively closely together and they can overlap at times.
This is my code (see below) I used to create my stimuli. I know why it’s happening, because I use Norm units (I find norm units the easiest to understand) So the random function is picking a number between 0-1 and then subtracting 0.5 in order to balance the display, I have tried messing around with other values but then my stimuli are no longer centered. Would it be more optimal to switch to pixels, and if so, what would my random function become?
Also would it be more efficient to use an element arraystim to create a screen of various targets and a singular distractor?
for x in range(10):
T_textR = visual.TextStim(win=win, name=‘T_textR’,
pos=(random()-0.5, random()-0.5), height=0.1, wrapWidth=None, ori=0.0,
color=‘red’, colorSpace=‘rgb’, opacity=None,
units = ‘norm’,
for letter in T_textlargeRed: