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

◆ addToRGB()

Add a constant to each channel, saturating at 0xFF.

Note
This is NOT an operator+= overload because the compiler can't usefully decide when it's being passed a 32-bit constant (e.g. CRGB::Red) and an 8-bit one (CRGB::Blue)

Definition at line 25 of file crgb.hpp.

26{
27 r = fl::qadd8( r, d);
28 g = fl::qadd8( g, d);
29 b = fl::qadd8( b, d);
30 return *this;
31}

References CRGB(), FASTLED_FORCE_INLINE, and FL_NOEXCEPT.

Referenced by operator++().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: