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 or equal to another.

Definition at line 705 of file crgb.h.

706{
707 uint16_t sl, sr;
708 sl = lhs.r + lhs.g + lhs.b;
709 sr = rhs.r + rhs.g + rhs.b;
710 return sl <= sr;
711}

References FASTLED_FORCE_INLINE.