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 692 of file crgb.h.

693{
694 uint16_t sl, sr;
695 sl = lhs.r + lhs.g + lhs.b;
696 sr = rhs.r + rhs.g + rhs.b;
697 return sl > sr;
698}

References FASTLED_FORCE_INLINE.