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

◆ addToRGB()

FASTLED_FORCE_INLINE CRGB & CRGB::addToRGB ( fl::u8 d)

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)

References CRGB(), and FASTLED_FORCE_INLINE.

Referenced by operator++().

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