FastLED 3.9.15
|
CHSV ColorFromPalette | ( | const CHSVPalette256 & | pal, |
uint8_t | index, | ||
uint8_t | brightness = 255, | ||
TBlendType | blendType = NOBLEND ) |
Get a color from a palette.
These are the main functions for getting and using palette colors. Regardless of the number of entries in the base palette, this function will interpolate between entries to turn the discrete colors into a smooth gradient.
pal | the palette to retrieve the color from |
index | the position in the palette to retrieve the color for (0-255) |
brightness | optional brightness value to scale the resulting color |
blendType | whether to take the palette entries directly (NOBLEND) or blend linearly between palette entries (LINEARBLEND) |
Definition at line 1294 of file colorutils.cpp.
References brightness, and scale8_video().