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 95 of file crgb.cpp.

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

References CRGB(), and qadd8().

+ Here is the call graph for this function: