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 less than another.

Definition at line 815 of file crgb.h.

816{
817 fl::u16 sl, sr;
818 sl = lhs.r + lhs.g + lhs.b;
819 sr = rhs.r + rhs.g + rhs.b;
820 return sl < sr;
821}

References FASTLED_FORCE_INLINE.