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

◆ fadeToBlackBy()

CRGB & CRGB::fadeToBlackBy ( uint8_t fadefactor)
inline

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 146 of file crgb.hpp.

147{
148 nscale8x3( r, g, b, 255 - fadefactor);
149 return *this;
150}
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:357

References CRGB(), and nscale8x3().

+ Here is the call graph for this function: