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

◆ fadeLightBy()

FASTLED_FORCE_INLINE CRGB & CRGB::fadeLightBy ( uint8_t fadefactor)

fadeLightBy is a synonym for nscale8_video(), as a fade instead of a scale

Parameters
fadefactorthe amount to fade, sent to nscale8_video() as (255 - fadefactor)

Definition at line 90 of file crgb.hpp.

91{
92 nscale8x3_video( r, g, b, 255 - fadefactor);
93 return *this;
94}
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().

+ Here is the call graph for this function: