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

◆ UpscalePalette() [3/6]

void UpscalePalette ( const class CHSVPalette32 & srcpal32,
class CHSVPalette256 & 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 1346 of file colorutils.cpp.

1347{
1348 for( int i = 0; i < 256; ++i) {
1349 destpal256[(uint8_t)(i)] = ColorFromPalette( srcpal32, i);
1350 }
1351}
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: