FastLED 3.9.15
|
RGB color palette with 256 discrete values.
Definition at line 1745 of file colorutils.h.
#include <colorutils.h>
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. | |
CRGBPalette256 & | loadDynamicGradientPalette (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. | |
CRGBPalette256 & | operator= (const CHSV rhs[256]) |
Create palette from array of CHSV colors. | |
CRGBPalette256 & | operator= (const CHSVPalette256 &rhs) |
Copy constructor. | |
CRGBPalette256 & | operator= (const CRGB rhs[256]) |
Create palette from array of CRGB colors. | |
CRGBPalette256 & | operator= (const CRGBPalette16 &rhs16) |
Create upscaled palette from 16-entry palette. | |
CRGBPalette256 & | operator= (const CRGBPalette256 &rhs) |
Copy constructor. | |
CRGBPalette256 & | operator= (const TProgmemRGBPalette16 &rhs) |
Create palette from palette stored in PROGMEM. | |
CRGBPalette256 & | operator= (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. | |
CRGB & | operator[] (int x) |
Array access operator to index into the gradient entries. | |
const CRGB & | operator[] (int x) const |
Array access operator to index into the gradient entries. | |
CRGB & | operator[] (uint8_t x) |
Array access operator to index into the gradient entries. | |
const CRGB & | operator[] (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 | |