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

◆ operator==()

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

Check if two palettes have the same color entries.

Definition at line 962 of file colorutils.h.

963 {
964 const uint8_t* p = (const uint8_t*)(&(this->entries[0]));
965 const uint8_t* q = (const uint8_t*)(&(rhs.entries[0]));
966 if( p == q) return true;
967 for( uint16_t i = 0; i < (sizeof( entries)); ++i) {
968 if( *p != *q) return false;
969 ++p;
970 ++q;
971 }
972 return true;
973 }
CHSV entries[256]
the color entries that make up the palette
Definition colorutils.h:876
static FASTLED_NAMESPACE_BEGIN uint8_t const p[]
Definition noise.cpp:56

References CHSVPalette256(), entries, and p.

+ Here is the call graph for this function: