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

◆ UpscalePalette() [6/6]

void UpscalePalette ( const class CRGBPalette32 & srcpal32,
class CRGBPalette256 & destpal256 )

Convert a 32-entry palette to a 256-entry palette.

Parameters
srcpal32the source palette to upscale
destpal256the destination palette for the upscaled data

Definition at line 1339 of file colorutils.cpp.

1340{
1341 for( int i = 0; i < 256; ++i) {
1342 destpal256[(uint8_t)(i)] = ColorFromPalette( srcpal32, i);
1343 }
1344}
CRGB ColorFromPalette(const CRGBPalette16 &pal, uint8_t index, uint8_t brightness, TBlendType blendType)
Get a color from a palette.

References ColorFromPalette().

+ Here is the call graph for this function: