FastLED 3.10.6
Loading...
Searching...
No Matches

◆ fadeUsingColor()

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

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

258 {
259 fl::u8 fr, fg, fb;
260 fr = colormask.r;
261 fg = colormask.g;
262 fb = colormask.b;
263
264 for (fl::u16 i = 0; i < numLeds; ++i) {
265 leds[i].r = scale8_LEAVING_R1_DIRTY(leds[i].r, fr);
266 leds[i].g = scale8_LEAVING_R1_DIRTY(leds[i].g, fg);
267 leds[i].b = scale8(leds[i].b, fb);
268 }
269 cleanup_R1();
270}
CRGB leds[1]
unsigned char u8
Definition stdint.h:131
InputGamut g
Definition rgbw.h:124

References g, and leds.

Referenced by FL_DISABLE_WARNING().

+ Here is the caller graph for this function: