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

◆ UpscalePalette() [5/6]

void UpscalePalette ( const class CRGBPalette16 & srcpal16,
class CRGBPalette32 & destpal32 )

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

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

Definition at line 1321 of file colorutils.cpp.

1322{
1323 for( uint8_t i = 0; i < 16; ++i) {
1324 uint8_t j = i * 2;
1325 destpal32[j+0] = srcpal16[i];
1326 destpal32[j+1] = srcpal16[i];
1327 }
1328}