|
FastLED 3.9.15
|
| LIB8STATIC void nscale8x3_video | ( | 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), ensuring that non-zero values passed in remain non-zero, no matter how low the scale argument.
| 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 401 of file scale8.h.
References cleanup_R1(), LIB8STATIC, nscale8_video_LEAVING_R1_DIRTY(), and scale.
Referenced by fl::ColorFromPaletteExtended().
Here is the call graph for this function:
Here is the caller graph for this function: