FastLED 3.10.8
Loading...
Searching...
No Matches

◆ fadeToBlackBy()

CRGB & CRGB::fadeToBlackBy ( fl::u8 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)
Examples
BeatDetection.ino.

Definition at line 110 of file crgb.cpp.hpp.

110 {
111 nscale8x3(r, g, b, 255 - fadefactor);
112 return *this;
113}
InputGamut g
Definition rgbw.h:125

References CRGB(), fl::FL_NO_EXCEPT, and fl::g.

Referenced by fl::XYDrawComposited::draw(), drawWaveform(), and loop().

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