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

◆ operator==()

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

Check if two palettes have the same color entries.

Definition at line 818 of file colorutils.h.

819 {
820 const uint8_t* p = (const uint8_t*)(&(this->entries[0]));
821 const uint8_t* q = (const uint8_t*)(&(rhs.entries[0]));
822 if( p == q) return true;
823 for( uint8_t i = 0; i < (sizeof( entries)); ++i) {
824 if( *p != *q) return false;
825 ++p;
826 ++q;
827 }
828 return true;
829 }
CHSV entries[16]
the color entries that make up the palette
Definition colorutils.h:729
static FASTLED_NAMESPACE_BEGIN uint8_t const p[]
Definition noise.cpp:56

References CHSVPalette16(), entries, and p.

+ Here is the call graph for this function: