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

◆ operator>()

FASTLED_FORCE_INLINE bool operator> ( const CRGB & lhs,
const CRGB & rhs )

Check if the sum of the color channels in one CRGB object is greater than another.

Definition at line 687 of file crgb.h.

688{
689 uint16_t sl, sr;
690 sl = lhs.r + lhs.g + lhs.b;
691 sr = rhs.r + rhs.g + rhs.b;
692 return sl > sr;
693}

References FASTLED_FORCE_INLINE.