FastLED 3.10.8
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}
InputGamut g
Definition rgbw.h:125

References CRGB(), FASTLED_FORCE_INLINE, fl::FL_NO_EXCEPT, and fl::g.

Referenced by operator++().

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