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

Definition at line 696 of file crgb.h.

697{
698 uint16_t sl, sr;
699 sl = lhs.r + lhs.g + lhs.b;
700 sr = rhs.r + rhs.g + rhs.b;
701 return sl >= sr;
702}

References FASTLED_FORCE_INLINE.