FastLED 3.9.15
Loading...
Searching...
No Matches

◆ operator&=() [1/2]

FASTLED_FORCE_INLINE CRGB & CRGB::operator&= ( const CRGB & rhs)
inline

"and" operator brings each channel down to the lower of the two values

Definition at line 321 of file crgb.h.

322 {
323 if( rhs.r < r) r = rhs.r;
324 if( rhs.g < g) g = rhs.g;
325 if( rhs.b < b) b = rhs.b;
326 return *this;
327 }

References CRGB(), and FASTLED_FORCE_INLINE.

+ Here is the call graph for this function: