FastLED 3.9.15
|
LIB8STATIC void nscale8x3 | ( | uint8_t & | r, |
uint8_t & | g, | ||
uint8_t & | b, | ||
fract8 | scale ) |
Scale three one-byte values by a fourth one, which is treated as the numerator of a fraction whose demominator is 256.
In other words, it computes r,g,b * (scale / 256)
r | first value to scale |
g | second value to scale |
b | third value to scale |
scale | scale factor, in n/256 units |
Definition at line 363 of file scale8.h.
References cleanup_R1(), LIB8STATIC, scale, and scale8_LEAVING_R1_DIRTY().
Referenced by fl::ColorFromPaletteExtended(), fl::ColorFromPaletteExtended(), CRGB::fadeToBlackBy(), MyColorFromPaletteExtended(), CRGB::nscale8(), and CRGB::scale8().