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

◆ 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.

1355 {
1356 for( uint8_t i = 0; i < 32; ++i) {
1357 CRGB xyz(FL_PGM_READ_DWORD_NEAR( rhs + i));
1358 entries[i].hue = xyz.red;
1359 entries[i].sat = xyz.green;
1360 entries[i].val = xyz.blue;
1361 }
1362 return *this;
1363 }
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 CHSVPalette32(), entries, and FL_PGM_READ_DWORD_NEAR.

+ Here is the call graph for this function: