FastLED 3.9.15
|
void fill_palette | ( | CRGB * | L, |
uint16_t | N, | ||
uint8_t | startIndex, | ||
uint8_t | incIndex, | ||
const PALETTE & | pal, | ||
uint8_t | brightness = 255, | ||
TBlendType | blendType = LINEARBLEND ) |
Fill a range of LEDs with a sequence of entries from a palette.
PALETTE | the type of the palette used (auto-deduced) |
L | pointer to the LED array to fill |
N | number of LEDs to fill in the array |
startIndex | the starting color index in the palette |
incIndex | how much to increment the palette color index per LED |
pal | the color palette to pull colors from |
brightness | brightness value used to scale the resulting color |
blendType | whether to take the palette entries directly (NOBLEND) or blend linearly between palette entries (LINEARBLEND) |
Definition at line 2094 of file colorutils.h.
References brightness, ColorFromPalette(), and LINEARBLEND.