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

825{
826 fl::u16 sl, sr;
827 sl = lhs.r + lhs.g + lhs.b;
828 sr = rhs.r + rhs.g + rhs.b;
829 return sl > sr;
830}

References FASTLED_FORCE_INLINE.