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

◆ nscale8_video()

void nscale8_video ( CRGB * leds,
uint16_t num_leds,
uint8_t scale )

Scale 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 scale
num_ledsthe number of LEDs to scale
scalehow much to scale each LED

Definition at line 252 of file colorutils.cpp.

253{
254 for( uint16_t i = 0; i < num_leds; ++i) {
255 leds[i].nscale8_video( scale);
256 }
257}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
UISlider scale("Scale", 4,.1, 4,.1)

References leds, and scale.

Referenced by fade_video(), and fadeLightBy().

+ Here is the caller graph for this function: