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

◆ UpscalePalette() [4/6]

void UpscalePalette ( const class CRGBPalette16 & srcpal16,
class CRGBPalette256 & 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 1306 of file colorutils.cpp.

1307{
1308 for( int i = 0; i < 256; ++i) {
1309 destpal256[(uint8_t)(i)] = ColorFromPalette( srcpal16, i);
1310 }
1311}
CRGB ColorFromPalette(const CRGBPalette16 &pal, uint8_t index, uint8_t brightness, TBlendType blendType)
Get a color from a palette.

References ColorFromPalette().

Referenced by CHSVPalette256::CHSVPalette256(), CRGBPalette256::CRGBPalette256(), CRGBPalette32::CRGBPalette32(), CHSVPalette256::operator=(), CRGBPalette256::operator=(), and CRGBPalette32::operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: