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

◆ fadeLightBy()

void fadeLightBy ( 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 264 of file colorutils.cpp.

265{
266 nscale8_video( leds, num_leds, 255 - fadeBy);
267}
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: