FastLED 3.9.15
|
CRGB ColorFromPalette | ( | const CRGBPalette256 & | 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 1046 of file colorutils.cpp.
References brightness, cleanup_R1(), and scale8_video_LEAVING_R1_DIRTY().