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

◆ UpscalePalette() [1/6]

void UpscalePalette ( const class CHSVPalette16 & srcpal16,
class CHSVPalette256 & destpal256 )

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

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

Definition at line 1313 of file colorutils.cpp.

1314{
1315 for( int i = 0; i < 256; ++i) {
1316 destpal256[(uint8_t)(i)] = ColorFromPalette( srcpal16, i);
1317 }
1318}
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: