FastLED 3.9.15
|
LIB8STATIC void nscale8x2 | ( | uint8_t & | i, |
uint8_t & | j, | ||
fract8 | scale ) |
Scale two one-byte values by a third one, which is treated as the numerator of a fraction whose demominator is 256.
In other words, it computes i,j * (scale / 256).
i | first value to scale |
j | second value to scale |
scale | scale factor, in n/256 units |
Definition at line 417 of file scale8.h.
References cleanup_R1(), LIB8STATIC, scale, and scale8_LEAVING_R1_DIRTY().