When creating a gabor patch, how do I change the color of every other bar? The following line produces red bars with every other being light blue. A blue patch yields blue and yellow bars.
The colors are designed to average to the mean grey of the screen. Otherwise your color would alter the overall luminance and chromaticity of the patch, which vision scientists don’t like.
No, grating does nothing to inspect the background. It’s assumed to be grey
As I say, if you need custom texture then you need to create them as numpy arrays (or even just images if you only have a few that you need) in advance and pass that as the texture to the grating.