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

◆ fill_solid() [2/2]

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

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 fl::Pacifica::draw(), and fl::NoisePalette::SetupBlackAndWhiteStripedPalette().

+ Here is the caller graph for this function: