FastLED 3.9.15
|
Reduce the brightness of an array of pixels as thought it were seen through a transparent filter with the specified color.
For example, if the colormask if CRGB(200, 100, 50), then the pixels' red will be faded to 200/256ths, their green to 100/256ths, and their blue to 50/256ths. This particular example will give a "hot fade" look, with white fading to yellow, then red, then black. You can also use colormasks like CRGB::Blue to zero out the red and green elements, leaving blue (largely) the same.
leds | a pointer to the LED array to fade |
numLeds | the number of LEDs to fade |
colormask | the color mask to fade with |
Definition at line 288 of file colorutils.cpp.
References leds, scale8(), and scale8_LEAVING_R1_DIRTY().