NeoPixelBus icon indicating copy to clipboard operation
NeoPixelBus copied to clipboard

Changed gamma correction according to CIE LAB

Open Benik3 opened this issue 5 years ago • 2 comments

This method is more linear for eye then simple exponential curve mainly on low values.
Nicely described e.g. here: https://ledshield.wordpress.com/2012/11/13/led-brightness-to-your-eye-gamma-correction-no/ More info about CIE Lab https://en.wikipedia.org/wiki/CIELAB_color_space

Also it looks like NeoEase::Gamma was used only here, but I leaved it in the code.

Benik3 avatar Dec 27 '18 19:12 Benik3

NeoEase::Gamma is meant to be the same thing just as the formula. There are some animation tricks it can be used for; but it should match the gamma correction.

Makuna avatar Dec 27 '18 19:12 Makuna

I got it. Fixed, if you are still interested :)

Benik3 avatar Dec 27 '18 21:12 Benik3

Finally got around to integrating these changes. Exposed them as a different gamma equation https://github.com/Makuna/NeoPixelBus/pull/651 GammaCieLab

Makuna avatar Feb 12 '23 17:02 Makuna