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

◆ nscale8()

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

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

This function will eventually fade all the way to black, even if "scale" is not zero.

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 281 of file colorutils.cpp.

282{
283 for( uint16_t i = 0; i < num_leds; ++i) {
284 leds[i].nscale8( scale);
285 }
286}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
UISlider scale("Scale", 4,.1, 4,.1)

References leds, and scale.

Referenced by fade_raw(), and fadeToBlackBy().

+ Here is the caller graph for this function: