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

◆ operator&=() [2/2]

FASTLED_FORCE_INLINE CRGB & CRGB::operator&= ( uint8_t d)
inline

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

Definition at line 335 of file crgb.h.

336 {
337 if( d < r) r = d;
338 if( d < g) g = d;
339 if( d < b) b = d;
340 return *this;
341 }

References CRGB(), and FASTLED_FORCE_INLINE.

+ Here is the call graph for this function: