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

◆ operator%=()

FASTLED_FORCE_INLINE CRGB & CRGB::operator%= ( uint8_t scaledown)

%= is a synonym for nscale8_video().

Think of it is scaling down by "a percentage"

Definition at line 75 of file crgb.hpp.

76{
77 nscale8x3_video( r, g, b, scaledown);
78 return *this;
79}
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:397

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

+ Here is the call graph for this function: