MCPcopy Create free account
hub / github.com/AlexGyver/GyverLamp2 / fadeUsingColor

Function fadeUsingColor

libraries/FastLED-3.4.0/src/colorutils.cpp:212–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void fadeUsingColor( CRGB* leds, uint16_t numLeds, const CRGB& colormask)
213{
214 uint8_t fr, fg, fb;
215 fr = colormask.r;
216 fg = colormask.g;
217 fb = colormask.b;
218
219 for( uint16_t i = 0; i < numLeds; ++i) {
220 leds[i].r = scale8_LEAVING_R1_DIRTY( leds[i].r, fr);
221 leds[i].g = scale8_LEAVING_R1_DIRTY( leds[i].g, fg);
222 leds[i].b = scale8 ( leds[i].b, fb);
223 }
224}
225
226
227CRGB& nblend( CRGB& existing, const CRGB& overlay, fract8 amountOfOverlay )

Callers

nothing calls this directly

Calls 2

scale8_LEAVING_R1_DIRTYFunction · 0.85
scale8Function · 0.85

Tested by

no test coverage detected