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

◆ operator&=() [1/2]

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

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

Definition at line 334 of file crgb.h.

335 {
336 if( rhs.r < r) r = rhs.r;
337 if( rhs.g < g) g = rhs.g;
338 if( rhs.b < b) b = rhs.b;
339 return *this;
340 }

References CRGB(), FASTLED_FORCE_INLINE, and FL_NOEXCEPT.

+ Here is the call graph for this function: