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

◆ fadeUsingColor()

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

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

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