FastLED 3.9.15
Loading...
Searching...
No Matches

◆ fade_video()

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

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

Guaranteed to never 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 259 of file colorutils.cpp.

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

References leds, and nscale8_video().

+ Here is the call graph for this function: