The main class to control a bits++ box.
This is usually a class added within the window object and is typically accessed from there. e.g.:
from psychopy import visual
win = visual.Window([800,600], bitsMode='fast')
win.bits.setContrast(0.5)#use bits++ to reduce the whole screen contrast by 50%
Optional parameter LUTrange determines which entries of the LUT will be set to this contrast
| Parameters : |
|
|---|
setContrast(1.0,[0.25,0.5])
Set the LUT to have the requested gamma. Currently also resets the LUT to be a linear contrast ramp spanning its full range. May change this to read the current LUT, undo previous gamm and then apply new one?
Sets the LUT to a specific range of values.
Note that, if you leave gammaCorrect=True then any LUT values you supply will automatically be gamma corrected.
If BitsBox setMethod is ‘fast’ then the LUT will take effect on the next Window.update() If the setMethod is ‘slow’ then the update will take place over the next 1-4secs down the USB port.
(NB by using BitsBox.setContr() and BitsBox.setGamma() users may not need this function!?)