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 330 of file crgb.h.

331 {
332 if( d < r) r = d;
333 if( d < g) g = d;
334 if( d < b) b = d;
335 return *this;
336 }

References CRGB(), and FASTLED_FORCE_INLINE.

+ Here is the call graph for this function: