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

◆ operator==()

bool CRGBPalette32::operator== ( const CRGBPalette32 & rhs) const
inline

Check if two palettes have the same color entries.

Definition at line 1532 of file colorutils.h.

1533 {
1534 const uint8_t* p = (const uint8_t*)(&(this->entries[0]));
1535 const uint8_t* q = (const uint8_t*)(&(rhs.entries[0]));
1536 if( p == q) return true;
1537 for( uint8_t i = 0; i < (sizeof( entries)); ++i) {
1538 if( *p != *q) return false;
1539 ++p;
1540 ++q;
1541 }
1542 return true;
1543 }
CRGB entries[32]
the color entries that make up the palette
static FASTLED_NAMESPACE_BEGIN uint8_t const p[]
Definition noise.cpp:56

References CRGBPalette32(), entries, and p.

+ Here is the call graph for this function: