FastLED 3.9.12
Loading...
Searching...
No Matches
CHSVPalette32 Class Reference

Detailed Description

HSV color palette with 32 discrete values.

Definition at line 1307 of file colorutils.h.

#include <colorutils.h>

Public Member Functions

 CHSVPalette32 ()
 Default constructor.
 
 CHSVPalette32 (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.
 
 CHSVPalette32 (const CHSVPalette32 &rhs)
 Copy constructor.
 
CHSVPalette32operator= (const CHSVPalette32 &rhs)
 Copy constructor.
 
 CHSVPalette32 (const TProgmemHSVPalette32 &rhs)
 Create palette from palette stored in PROGMEM.
 
CHSVPalette32operator= (const TProgmemHSVPalette32 &rhs)
 Create palette from palette stored in PROGMEM.
 
CHSVoperator[] (uint8_t x)
 Create palette from palette stored in PROGMEM.
 
const CHSVoperator[] (uint8_t x) const
 Create palette from palette stored in PROGMEM.
 
CHSVoperator[] (int x)
 Create palette from palette stored in PROGMEM.
 
const CHSVoperator[] (int x) const
 Create palette from palette stored in PROGMEM.
 
 operator CHSV * ()
 Get the underlying pointer to the CHSV entries making up the palette.
 
bool operator== (const CHSVPalette32 &rhs) const
 Check if two palettes have the same color entries.
 
bool operator!= (const CHSVPalette32 &rhs) const
 Check if two palettes do not have the same color entries.
 
 CHSVPalette32 (const CHSV &c1)
 Create palette filled with one color.
 
 CHSVPalette32 (const CHSV &c1, const CHSV &c2)
 Create palette with a gradient from one color to another.
 
 CHSVPalette32 (const CHSV &c1, const CHSV &c2, const CHSV &c3)
 Create palette with three-color gradient.
 
 CHSVPalette32 (const CHSV &c1, const CHSV &c2, const CHSV &c3, const CHSV &c4)
 Create palette with four-color gradient.
 

Public Attributes

CHSV entries [32]
 the color entries that make up the palette
 

Constructor & Destructor Documentation

◆ CHSVPalette32() [1/8]

CHSVPalette32::CHSVPalette32 ( )
inline

Default constructor.

Warning
Default values are UNITIALIZED!

Definition at line 1312 of file colorutils.h.

◆ CHSVPalette32() [2/8]

CHSVPalette32::CHSVPalette32 ( 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 )
inline

Create palette from 16 CHSV values.

Definition at line 1318 of file colorutils.h.

◆ CHSVPalette32() [3/8]

CHSVPalette32::CHSVPalette32 ( const CHSVPalette32 & rhs)
inline

Copy constructor.

Definition at line 1332 of file colorutils.h.

◆ CHSVPalette32() [4/8]

CHSVPalette32::CHSVPalette32 ( const TProgmemHSVPalette32 & rhs)
inline

Create palette from palette stored in PROGMEM.

Definition at line 1344 of file colorutils.h.

◆ CHSVPalette32() [5/8]

CHSVPalette32::CHSVPalette32 ( const CHSV & c1)
inline

Create palette filled with one color.

Parameters
c1the color to fill the palette with

Definition at line 1413 of file colorutils.h.

◆ CHSVPalette32() [6/8]

CHSVPalette32::CHSVPalette32 ( const CHSV & c1,
const CHSV & c2 )
inline

Create palette with a gradient from one color to another.

Parameters
c1the starting color for the gradient
c2the end color for the gradient

Definition at line 1418 of file colorutils.h.

◆ CHSVPalette32() [7/8]

CHSVPalette32::CHSVPalette32 ( const CHSV & c1,
const CHSV & c2,
const CHSV & c3 )
inline

Create palette with three-color gradient.

Parameters
c1the starting color for the gradient
c2the middle color for the gradient
c3the end color for the gradient

Definition at line 1423 of file colorutils.h.

◆ CHSVPalette32() [8/8]

CHSVPalette32::CHSVPalette32 ( const CHSV & c1,
const CHSV & c2,
const CHSV & c3,
const CHSV & c4 )
inline

Create palette with four-color gradient.

Parameters
c1the starting color for the gradient
c2the first middle color for the gradient
c3the second middle color for the gradient
c4the end color for the gradient

Definition at line 1428 of file colorutils.h.

Member Function Documentation

◆ operator CHSV *()

CHSVPalette32::operator CHSV * ( )
inline

Get the underlying pointer to the CHSV entries making up the palette.

Definition at line 1388 of file colorutils.h.

◆ operator!=()

bool CHSVPalette32::operator!= ( const CHSVPalette32 & rhs) const
inline

Check if two palettes do not have the same color entries.

Definition at line 1407 of file colorutils.h.

◆ operator=() [1/2]

CHSVPalette32 & CHSVPalette32::operator= ( const CHSVPalette32 & rhs)
inline

Copy constructor.

Definition at line 1337 of file colorutils.h.

◆ operator=() [2/2]

CHSVPalette32 & CHSVPalette32::operator= ( const TProgmemHSVPalette32 & rhs)
inline

Create palette from palette stored in PROGMEM.

Definition at line 1354 of file colorutils.h.

◆ operator==()

bool CHSVPalette32::operator== ( const CHSVPalette32 & rhs) const
inline

Check if two palettes have the same color entries.

Definition at line 1394 of file colorutils.h.

◆ operator[]() [1/4]

CHSV & CHSVPalette32::operator[] ( int x)
inline

Create palette from palette stored in PROGMEM.

Definition at line 1377 of file colorutils.h.

◆ operator[]() [2/4]

const CHSV & CHSVPalette32::operator[] ( int x) const
inline

Create palette from palette stored in PROGMEM.

Definition at line 1382 of file colorutils.h.

◆ operator[]() [3/4]

CHSV & CHSVPalette32::operator[] ( uint8_t x)
inline

Create palette from palette stored in PROGMEM.

Definition at line 1366 of file colorutils.h.

◆ operator[]() [4/4]

const CHSV & CHSVPalette32::operator[] ( uint8_t x) const
inline

Create palette from palette stored in PROGMEM.

Definition at line 1371 of file colorutils.h.

Member Data Documentation

◆ entries

CHSV CHSVPalette32::entries[32]

the color entries that make up the palette

Definition at line 1309 of file colorutils.h.


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