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

◆ fill_solid() [2/2]

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

54{
55 for( int i = 0; i < numToFill; ++i) {
56 targetArray[i] = color;
57 }
58}

Referenced by CHSVPalette16::CHSVPalette16(), CHSVPalette256::CHSVPalette256(), CHSVPalette32::CHSVPalette32(), CRGBPalette16::CRGBPalette16(), CRGBPalette16::CRGBPalette16(), CRGBPalette256::CRGBPalette256(), CRGBPalette256::CRGBPalette256(), CRGBPalette32::CRGBPalette32(), CRGBPalette32::CRGBPalette32(), fl::Pacifica::draw(), pacifica_loop(), fl::NoisePalette::SetupBlackAndWhiteStripedPalette(), and SetupBlackAndWhiteStripedPalette().

+ Here is the caller graph for this function: