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

◆ operator+=()

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

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

Definition at line 23 of file crgb.hpp.

24{
25 r = qadd8( r, rhs.r);
26 g = qadd8( g, rhs.g);
27 b = qadd8( b, rhs.b);
28 return *this;
29}
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(), FASTLED_FORCE_INLINE, and qadd8().

+ Here is the call graph for this function: