FastLED 3.9.15
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

◆ fadeToBlackBy()

void fadeToBlackBy ( CRGB * leds,
uint16_t num_leds,
uint8_t fadeBy )

Reduce the brightness of an array of pixels all at once.

This function will eventually fade all the way to black.

Parameters
ledsa pointer to the LED array to fade
num_ledsthe number of LEDs to fade
fadeByhow much to fade each LED

Definition at line 270 of file colorutils.cpp.

271{
272 nscale8( leds, num_leds, 255 - fadeBy);
273}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
void nscale8(CRGB *leds, uint16_t num_leds, uint8_t scale)
Scale the brightness of an array of pixels all at once.

References leds, and nscale8().

Referenced by confetti(), fl::DemoReel100::confetti(), fl::DemoReel100::juggle(), juggle(), loop(), fl::DemoReel100::sinelon(), and sinelon().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: