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

◆ fade_raw()

void fade_raw ( 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 275 of file colorutils.cpp.

276{
277 nscale8( leds, num_leds, 255 - fadeBy);
278}
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().

+ Here is the call graph for this function: