FastLED 3.9.15
|
HSV color palette with 16 discrete values.
Definition at line 727 of file colorutils.h.
#include <colorutils.h>
Public Member Functions | |
CHSVPalette16 () | |
Default constructor. | |
CHSVPalette16 (const CHSV &c00, const CHSV &c01, const CHSV &c02, const CHSV &c03, const CHSV &c04, const CHSV &c05, const CHSV &c06, const CHSV &c07, const CHSV &c08, const CHSV &c09, const CHSV &c10, const CHSV &c11, const CHSV &c12, const CHSV &c13, const CHSV &c14, const CHSV &c15) | |
Create palette from 16 CHSV values. | |
CHSVPalette16 (const CHSV &c1) | |
Create palette filled with one color. | |
CHSVPalette16 (const CHSV &c1, const CHSV &c2) | |
Create palette with a gradient from one color to another. | |
CHSVPalette16 (const CHSV &c1, const CHSV &c2, const CHSV &c3) | |
Create palette with three-color gradient. | |
CHSVPalette16 (const CHSV &c1, const CHSV &c2, const CHSV &c3, const CHSV &c4) | |
Create palette with four-color gradient. | |
CHSVPalette16 (const CHSVPalette16 &rhs) | |
Copy constructor. | |
CHSVPalette16 (const TProgmemHSVPalette16 &rhs) | |
Create palette from palette stored in PROGMEM. | |
operator CHSV * () | |
Get the underlying pointer to the CHSV entries making up the palette. | |
bool | operator!= (const CHSVPalette16 &rhs) const |
Check if two palettes do not have the same color entries. | |
CHSVPalette16 & | operator= (const CHSVPalette16 &rhs) |
Copy constructor. | |
CHSVPalette16 & | operator= (const TProgmemHSVPalette16 &rhs) |
Create palette from palette stored in PROGMEM. | |
bool | operator== (const CHSVPalette16 &rhs) const |
Check if two palettes have the same color entries. | |
CHSV & | operator[] (int x) |
Array access operator to index into the gradient entries. | |
const CHSV & | operator[] (int x) const |
Array access operator to index into the gradient entries. | |
CHSV & | operator[] (uint8_t x) |
Array access operator to index into the gradient entries. | |
const CHSV & | operator[] (uint8_t x) const |
Array access operator to index into the gradient entries. | |
Public Attributes | |
CHSV | entries [16] |
the color entries that make up the palette | |