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

◆ operator=() [2/2]

CHSVPalette16 & CHSVPalette16::operator= ( const TProgmemHSVPalette16 & rhs)
inline

Create palette from palette stored in PROGMEM.

Definition at line 771 of file colorutils.h.

772 {
773 for( uint8_t i = 0; i < 16; ++i) {
774 CRGB xyz(FL_PGM_READ_DWORD_NEAR( rhs + i));
775 entries[i].hue = xyz.red;
776 entries[i].sat = xyz.green;
777 entries[i].val = xyz.blue;
778 }
779 return *this;
780 }
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 CHSVPalette16(), entries, and FL_PGM_READ_DWORD_NEAR.

+ Here is the call graph for this function: