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

◆ operator+()

FASTLED_FORCE_INLINE CRGB operator+ ( const CRGB & p1,
const CRGB & p2 )

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

Definition at line 177 of file crgb.hpp.

178{
179 return CRGB( qadd8( p1.r, p2.r),
180 qadd8( p1.g, p2.g),
181 qadd8( p1.b, p2.b));
182}
LIB8STATIC_ALWAYS_INLINE uint8_t qadd8(uint8_t i, uint8_t j)
Add one byte to another, saturating at 0xFF.
Definition math8.h:31
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:55

References FASTLED_FORCE_INLINE, and qadd8().

+ Here is the call graph for this function: