FastLED 3.9.7
Loading...
Searching...
No Matches
Palette Upscaling Functions

Detailed Description

Functions to upscale palettes from one type to another.

Functions

void UpscalePalette (const class CRGBPalette16 &srcpal16, class CRGBPalette256 &destpal256)
 Convert a 16-entry palette to a 256-entry palette.
 
void UpscalePalette (const class CHSVPalette16 &srcpal16, class CHSVPalette256 &destpal256)
 Convert a 16-entry palette to a 256-entry palette.
 
void UpscalePalette (const class CRGBPalette16 &srcpal16, class CRGBPalette32 &destpal32)
 Convert a 16-entry palette to a 32-entry palette.
 
void UpscalePalette (const class CHSVPalette16 &srcpal16, class CHSVPalette32 &destpal32)
 Convert a 16-entry palette to a 32-entry palette.
 
void UpscalePalette (const class CRGBPalette32 &srcpal32, class CRGBPalette256 &destpal256)
 Convert a 32-entry palette to a 256-entry palette.
 
void UpscalePalette (const class CHSVPalette32 &srcpal32, class CHSVPalette256 &destpal256)
 Convert a 32-entry palette to a 256-entry palette.
 

Function Documentation

◆ 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 1275 of file colorutils.cpp.

◆ UpscalePalette() [2/6]

void UpscalePalette ( const class CHSVPalette16 & srcpal16,
class CHSVPalette32 & 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 1292 of file colorutils.cpp.

◆ 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 1308 of file colorutils.cpp.

◆ 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 1268 of file colorutils.cpp.

◆ 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 1283 of file colorutils.cpp.

◆ 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 1301 of file colorutils.cpp.