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

◆ operator+=()

CRGB & CRGB::operator+= ( const CRGB & rhs)

Add one CRGB to another, saturating at 0xFF for each channel.

Definition at line 94 of file crgb.cpp.

94 {
95 r = qadd8(r, rhs.r);
96 g = qadd8(g, rhs.g);
97 b = qadd8(b, rhs.b);
98 return *this;
99}
LIB8STATIC_ALWAYS_INLINE uint8_t qadd8(uint8_t i, uint8_t j)
Add one byte to another, saturating at 0xFF.
Definition math8.h:31

References CRGB(), and qadd8().

+ Here is the call graph for this function: