A grating stimulus for psychopy with a luminance pedestal.
This makes it possible for a grating to fluctuate around a background value that is not mean gray, a.k.a color=0.
This is based on code by Jonathan Peirce, in particular it is based on his shader code and 'GratingStim' class. The original code carries the following license:
Part of the PsychoPy library Copyright (C) 2015 Jonathan Peirce Distributed under the terms of the GNU General Public License (GPL).
Accordingly, this code is also licensed under the GNU General Public License (3+).
Psychopy can be found here: http://www.psychopy.org/
See minimal.py for an example of how to use this stimulus.