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

Detailed Description

RGB color palette with 16 discrete values.

Examples
ColorPalette.ino, DemoReel100.ino, Fire2012WithPalette.ino, NoisePlusPalette.ino, Pacifica.ino, and TwinkleFox.ino.

Definition at line 1004 of file colorutils.h.

#include <colorutils.h>

+ Collaboration diagram for CRGBPalette16:

Public Member Functions

 CRGBPalette16 ()
 Default constructor.
 
 CRGBPalette16 (const CHSV &c1)
 Create palette filled with one color.
 
 CRGBPalette16 (const CHSV &c1, const CHSV &c2)
 Create palette with a gradient from one color to another.
 
 CRGBPalette16 (const CHSV &c1, const CHSV &c2, const CHSV &c3)
 Create palette with three-color gradient.
 
 CRGBPalette16 (const CHSV &c1, const CHSV &c2, const CHSV &c3, const CHSV &c4)
 Create palette with four-color gradient.
 
 CRGBPalette16 (const CHSV rhs[16])
 Create palette from array of CHSV colors.
 
 CRGBPalette16 (const CHSVPalette16 &rhs)
 Create palette from CHSV palette.
 
 CRGBPalette16 (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.
 
 CRGBPalette16 (const CRGB &c1)
 Create palette filled with one color.
 
 CRGBPalette16 (const CRGB &c1, const CRGB &c2)
 Create palette with a gradient from one color to another.
 
 CRGBPalette16 (const CRGB &c1, const CRGB &c2, const CRGB &c3)
 Create palette with three-color gradient.
 
 CRGBPalette16 (const CRGB &c1, const CRGB &c2, const CRGB &c3, const CRGB &c4)
 Create palette with four-color gradient.
 
 CRGBPalette16 (const CRGB rhs[16])
 Create palette from array of CRGB colors.
 
 CRGBPalette16 (const CRGBPalette16 &rhs)
 Copy constructor.
 
 CRGBPalette16 (const TProgmemRGBPalette16 &rhs)
 Create palette from palette stored in PROGMEM.
 
 CRGBPalette16 (TProgmemRGBGradientPalette_bytes progpal)
 Creates a palette from a gradient palette in PROGMEM.
 
CRGBPalette16loadDynamicGradientPalette (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 CRGBPalette16 &rhs) const
 Check if two palettes do not have the same color entries.
 
CRGBPalette16operator= (const CHSV rhs[16])
 Create palette from array of CHSV colors.
 
CRGBPalette16operator= (const CHSVPalette16 &rhs)
 Create palette from CHSV palette.
 
CRGBPalette16operator= (const CRGB rhs[16])
 Create palette from array of CRGB colors.
 
CRGBPalette16operator= (const CRGBPalette16 &rhs)
 Copy constructor.
 
CRGBPalette16operator= (const TProgmemRGBPalette16 &rhs)
 Create palette from palette stored in PROGMEM.
 
CRGBPalette16operator= (TProgmemRGBGradientPalette_bytes progpal)
 Creates a palette from a gradient palette in PROGMEM.
 
bool operator== (const CRGBPalette16 &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 [16]
 the color entries that make up the palette
 

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