I’ve been trying to create grating stims like the one below. I know you can create these kind of stimuli using gratingStim and that you are able to create circles and squares by changing the “mask” argument ( eg mask=‘circle’)
However, I want to create other stimuli, with this same grating, I just want to change the shape of the stimulus. Instead of a circle I want to create a cross, a triangle and an hexagon.
I’m having trouble finding a appropriate way to this. Anyone has experience with this and can point me in the right direction?
gaborcirc = visual.GratingStim(myWin, tex=“sin”,mask=“circle”,texRes=256,
size=[0.5,0.5], sf=[8,0], ori =0, name=‘gaborcirc’, pos=[0.5,0.0]) # grating stim with a circle shape