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

◆ subtractFromRGB()

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

Subtract a constant from each channel, saturating at 0x00.

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: