brightness and gamma correction?

BlitzMax Forums/BlitzMax Programming/brightness and gamma correction?

orgos(Posted 2009) [#1]
There is any function or code to make a brightness and gamma correction in real time?


markcw(Posted 2009) [#2]
No.


ImaginaryHuman(Posted 2009) [#3]
Drawing an alphablended white rectangle over the screen with a low level of alpha value will have the same effect as increasing brightness. Drawing a black rectangle similarly will darken the screen.

Gamma is more tricky and is more like a stretching of the range of contrast levels, sorta. The darkest colors stay dark while the lighter colors get proportionately lighter.