psychopy.org | Reference | Downloads | Github

Apply gamma correction only to stimulus

I have a set of videos that I want to display with a gamma correction applied. I’ve tried setting visual.Window.gamma, but that changes gamma for the entire display, which can make the buttons and text unpleasing. Also, if PsychoPy crashes, the gamma persists in Windows until a color calibration is performed, or gamma is set again within PsychoPy.

I’m guessing I could apply a gamma lookup table via numpy or a fragment shader, but wanted to inquire here first.