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

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

1395 {
1396 const uint8_t* p = (const uint8_t*)(&(this->entries[0]));
1397 const uint8_t* q = (const uint8_t*)(&(rhs.entries[0]));
1398 if( p == q) return true;
1399 for( uint8_t i = 0; i < (sizeof( entries)); ++i) {
1400 if( *p != *q) return false;
1401 ++p;
1402 ++q;
1403 }
1404 return true;
1405 }
CHSV entries[32]
the color entries that make up the palette
static FASTLED_NAMESPACE_BEGIN uint8_t const p[]
Definition noise.cpp:56

References CHSVPalette32(), entries, and p.

+ Here is the call graph for this function: