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

◆ fadeToBlackBy()

CRGB & CRGB::fadeToBlackBy ( uint8_t fadefactor)

fadeToBlackBy is a synonym for nscale8(), as a fade instead of a scale

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

Definition at line 111 of file crgb.cpp.

111 {
112 nscale8x3(r, g, b, 255 - fadefactor);
113 return *this;
114}
LIB8STATIC void nscale8x3(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:363

References CRGB(), and nscale8x3().

Referenced by fl::XYDrawComposited::draw().

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