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

◆ fill_solid()

void fl::fill_solid ( struct CRGB * targetArray,
int numToFill,
const struct CRGB & color )

Fill a range of LEDs with a solid color.

Parameters
targetArraya pointer to the LED array to fill
numToFillthe number of LEDs to fill in the array
colorthe color to fill with
Examples
ColorPalette.ino, NoisePlusPalette.ino, and Pacifica.ino.

Definition at line 9 of file fill.cpp.

10 {
11 for (int i = 0; i < numToFill; ++i) {
12 targetArray[i] = color;
13 }
14}

Referenced by pacifica_loop(), and SetupBlackAndWhiteStripedPalette().

+ Here is the caller graph for this function: