FastLED 3.9.15
Loading...
Searching...
No Matches

◆ nscale8_video()

FASTLED_FORCE_INLINE CRGB & CRGB::nscale8_video ( uint8_t scaledown)

Scale down a RGB to N/256ths of it's current brightness using "video" dimming rules.

"Video" dimming rules means that unless the scale factor is ZERO each channel is guaranteed NOT to dim down to zero. If it's already nonzero, it'll stay nonzero, even if that means the hue shifts a little at low brightness levels.

See also
nscale8x3_video
Examples
TwinkleFox.ino.

Definition at line 78 of file crgb.hpp.

79{
80 nscale8x3_video( r, g, b, scaledown);
81 return *this;
82}
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 de...
Definition scale8.h:391

References CRGB(), FASTLED_FORCE_INLINE, and nscale8x3_video().

Referenced by fl::TwinkleFox::drawTwinkleFox(), drawTwinkles(), map_data_into_colors_through_palette(), and operator%().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: