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

◆ CHSVPalette32() [4/8]

CHSVPalette32::CHSVPalette32 ( const TProgmemHSVPalette32 & rhs)
inline

Create palette from palette stored in PROGMEM.

Definition at line 1344 of file colorutils.h.

1345 {
1346 for( uint8_t i = 0; i < 32; ++i) {
1347 CRGB xyz(FL_PGM_READ_DWORD_NEAR( rhs + i));
1348 entries[i].hue = xyz.red;
1349 entries[i].sat = xyz.green;
1350 entries[i].val = xyz.blue;
1351 }
1352 }
CHSV entries[32]
the color entries that make up the palette
#define FL_PGM_READ_DWORD_NEAR(x)
Read a double word (32-bit) from PROGMEM memory.

References entries, and FL_PGM_READ_DWORD_NEAR.