FastLED 3.9.15
Loading...
Searching...
No Matches

◆ CHSVPalette16() [4/8]

CHSVPalette16::CHSVPalette16 ( const TProgmemHSVPalette16 & rhs)
inline

Create palette from palette stored in PROGMEM.

Definition at line 760 of file colorutils.h.

761 {
762 for( uint8_t i = 0; i < 16; ++i) {
763 CRGB xyz(FL_PGM_READ_DWORD_NEAR( rhs + i));
764 entries[i].hue = xyz.red;
765 entries[i].sat = xyz.green;
766 entries[i].val = xyz.blue;
767 }
768 }
CHSV entries[16]
the color entries that make up the palette
Definition colorutils.h:729
#define FL_PGM_READ_DWORD_NEAR(x)
Read a double word (32-bit) from PROGMEM memory.

References entries, and FL_PGM_READ_DWORD_NEAR.