FastLED 3.9.15
Loading...
Searching...
No Matches
CRGBPalette256 Class Reference

Detailed Description

RGB color palette with 256 discrete values.

Definition at line 1745 of file colorutils.h.

#include <colorutils.h>

+ Collaboration diagram for CRGBPalette256:

Public Member Functions

 CRGBPalette256 ()
 Default constructor.
 
 CRGBPalette256 (const CHSV &c1)
 Create palette filled with one color.
 
 CRGBPalette256 (const CHSV &c1, const CHSV &c2)
 Create palette with a gradient from one color to another.
 
 CRGBPalette256 (const CHSV &c1, const CHSV &c2, const CHSV &c3)
 Create palette with three-color gradient.
 
 CRGBPalette256 (const CHSV &c1, const CHSV &c2, const CHSV &c3, const CHSV &c4)
 Create palette with four-color gradient.
 
 CRGBPalette256 (const CHSV rhs[256])
 Create palette from array of CHSV colors.
 
 CRGBPalette256 (const CHSVPalette256 &rhs)
 Create palette from CHSV palette.
 
 CRGBPalette256 (const CRGB &c00, const CRGB &c01, const CRGB &c02, const CRGB &c03, const CRGB &c04, const CRGB &c05, const CRGB &c06, const CRGB &c07, const CRGB &c08, const CRGB &c09, const CRGB &c10, const CRGB &c11, const CRGB &c12, const CRGB &c13, const CRGB &c14, const CRGB &c15)
 Create palette from 16 CRGB values.
 
 CRGBPalette256 (const CRGB &c1)
 Create palette filled with one color.
 
 CRGBPalette256 (const CRGB &c1, const CRGB &c2)
 Create palette with a gradient from one color to another.
 
 CRGBPalette256 (const CRGB &c1, const CRGB &c2, const CRGB &c3)
 Create palette with three-color gradient.
 
 CRGBPalette256 (const CRGB &c1, const CRGB &c2, const CRGB &c3, const CRGB &c4)
 Create palette with four-color gradient.
 
 CRGBPalette256 (const CRGB rhs[256])
 Create palette from array of CRGB colors.
 
 CRGBPalette256 (const CRGBPalette16 &rhs16)
 Create upscaled palette from 16-entry palette.
 
 CRGBPalette256 (const CRGBPalette256 &rhs)
 Copy constructor.
 
 CRGBPalette256 (const TProgmemRGBPalette16 &rhs)
 Create palette from palette stored in PROGMEM.
 
 CRGBPalette256 (TProgmemRGBGradientPalette_bytes progpal)
 Creates a palette from a gradient palette in PROGMEM.
 
CRGBPalette256loadDynamicGradientPalette (TDynamicRGBGradientPalette_bytes gpal)
 Creates a palette from a gradient palette in dynamic (heap) memory.
 
 operator CRGB * ()
 Get the underlying pointer to the CHSV entries making up the palette.
 
bool operator!= (const CRGBPalette256 &rhs) const
 Check if two palettes do not have the same color entries.
 
CRGBPalette256operator= (const CHSV rhs[256])
 Create palette from array of CHSV colors.
 
CRGBPalette256operator= (const CHSVPalette256 &rhs)
 Copy constructor.
 
CRGBPalette256operator= (const CRGB rhs[256])
 Create palette from array of CRGB colors.
 
CRGBPalette256operator= (const CRGBPalette16 &rhs16)
 Create upscaled palette from 16-entry palette.
 
CRGBPalette256operator= (const CRGBPalette256 &rhs)
 Copy constructor.
 
CRGBPalette256operator= (const TProgmemRGBPalette16 &rhs)
 Create palette from palette stored in PROGMEM.
 
CRGBPalette256operator= (TProgmemRGBGradientPalette_bytes progpal)
 Creates a palette from a gradient palette in PROGMEM.
 
bool operator== (const CRGBPalette256 &rhs) const
 Check if two palettes have the same color entries.
 
CRGBoperator[] (int x)
 Array access operator to index into the gradient entries.
 
const CRGBoperator[] (int x) const
 Array access operator to index into the gradient entries.
 
CRGBoperator[] (uint8_t x)
 Array access operator to index into the gradient entries.
 
const CRGBoperator[] (uint8_t x) const
 Array access operator to index into the gradient entries.
 

Public Attributes

CRGB entries [256]
 the color entries that make up the palette
 

The documentation for this class was generated from the following file: