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

◆ fadeUsingColor()

void fl::fadeUsingColor ( CRGB * leds,
fl::u16 numLeds,
const CRGB & colormask )

Definition at line 178 of file colorutils.cpp.hpp.

178 {
179 fl::u8 fr, fg, fb;
180 fr = colormask.r;
181 fg = colormask.g;
182 fb = colormask.b;
183
184 for (fl::u16 i = 0; i < numLeds; ++i) {
185 leds[i].r = scale8_LEAVING_R1_DIRTY(leds[i].r, fr);
186 leds[i].g = scale8_LEAVING_R1_DIRTY(leds[i].g, fg);
187 leds[i].b = scale8(leds[i].b, fb);
188 }
189}
fl::CRGB leds[NUM_LEDS]
unsigned char u8
Definition s16x16x4.h:132

References leds.

Referenced by FL_DISABLE_WARNING().

+ Here is the caller graph for this function: