|
FastLED 3.9.15
|
| LIB8STATIC_ALWAYS_INLINE uint8_t scale8_video | ( | uint8_t | i, |
| fract8 | scale ) |
The "video" version of scale8() guarantees that the output will be only be zero if one or both of the inputs are zero.
If both inputs are non-zero, the output is guaranteed to be non-zero. This makes for better "video"/LED dimming, at the cost of several additional cycles.
| i | input value to scale |
| scale | scale factor, in n/256 units |
Definition at line 127 of file scale8.h.
References LIB8STATIC_ALWAYS_INLINE, and scale.
Referenced by brighten8_video(), fl::ColorFromPalette(), fl::ColorFromPalette(), fl::ColorFromPalette(), dim8_video(), fl::HeatColor(), and hsv2rgb_rainbow().
Here is the caller graph for this function: