FastLED 3.9.15
|
LIB8STATIC void nscale8x2_video | ( | 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), ensuring that non-zero values passed in remain non zero, no matter how low the scale argument.
i | first value to scale |
j | second value to scale |
scale | scale factor, in n/256 units |
Definition at line 453 of file scale8.h.
References cleanup_R1(), LIB8STATIC, nscale8_video_LEAVING_R1_DIRTY(), and scale.