Datasheet

human vision makes bright colors less discernible than dim ones. The Adafruit_NeoMatrix library uses
gamma
correction
to select brightness levels that are visually (though not numerically) equidistant. There are 32 levels for red
and blue, 64 levels for green.
The Color() function performs the necessary conversion; you don’t need to do any math. It accepts 8-bit red, green and
blue values, and returns a gamma-corrected 16-bit color that can then be passed to other drawing functions.
© Adafruit Industries https://learn.adafruit.com/adafruit-neopixel-uberguide Page 52 of 68