FastLED 3.10.6
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 109 of file crgb.cpp.hpp.

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

References CRGB(), 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: