Hi there.
I’m currently trying to make a single color gabor patch.
Thanks to your legacy, I was able to make seven single-colored gabor patches(red, green, blue, yellow, magenta, cyan, white).
But I still need the eighth colored gabor patch, like purple or orange.
How can I make these color? please your help
Thanks in advance.
P.S This is the code I used to create colored gabor patch.
redGrat = np.zeros([256,256,3],'f')#the f indicates we want floats
redGrat[:,:,0] = visual.filters.makeGrating(256,gratType='sin')
redGrat[:,:,1] = -1.0
redGrat[:,:,2] = -1.0
greenGrat = np.zeros([256,256,3],'f')#the f indicates we want floats
greenGrat[:,:,0] = -1.0
greenGrat[:,:,1] = visual.filters.makeGrating(256,gratType='sin')
greenGrat[:,:,2] = -1.0
blueGrat = np.zeros([256,256,3],'f')#the f indicates we want floats
blueGrat[:,:,0] = -1.0
blueGrat[:,:,1] = -1.0
blueGrat[:,:,2] = visual.filters.makeGrating(256,gratType='sin')
yellowGrat = np.zeros([256,256,3],'f')#the f indicates we want floats
yellowGrat[:,:,0] = visual.filters.makeGrating(256,gratType='sin')
yellowGrat[:,:,1] = visual.filters.makeGrating(256,gratType='sin')
yellowGrat[:,:,2] = -1.0
magentaGrat = np.zeros([256,256,3],'f')#the f indicates we want floats
magentaGrat[:,:,0] = visual.filters.makeGrating(256,gratType='sin')
magentaGrat[:,:,1] = -1.0
magentaGrat[:,:,2] = visual.filters.makeGrating(256,gratType='sin')
cyanGrat = np.zeros([256,256,3],'f')#the f indicates we want floats
cyanGrat[:,:,0] = -1.0
cyanGrat[:,:,1] = visual.filters.makeGrating(256,gratType='sin')
cyanGrat[:,:,2] = visual.filters.makeGrating(256,gratType='sin')
whiteGrat = np.zeros([256,256,3],'f')#the f indicates we want floats
whiteGrat[:,:,0] = visual.filters.makeGrating(256,gratType='sin')
whiteGrat[:,:,1] = visual.filters.makeGrating(256,gratType='sin')
whiteGrat[:,:,2] = visual.filters.makeGrating(256,gratType='sin')