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 200 of file crgb.hpp.

201{
202 return CRGB( qadd8( p1.r, p2.r),
203 qadd8( p1.g, p2.g),
204 qadd8( p1.b, p2.b));
205}
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:54

References FASTLED_FORCE_INLINE, and qadd8().

+ Here is the call graph for this function: