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

◆ operator-=()

FASTLED_FORCE_INLINE CRGB & CRGB::operator-= ( const CRGB & rhs)

Subtract one CRGB from another, saturating at 0x00 for each channel.

Definition at line 39 of file crgb.hpp.

40{
41 r = qsub8( r, rhs.r);
42 g = qsub8( g, rhs.g);
43 b = qsub8( b, rhs.b);
44 return *this;
45}
LIB8STATIC_ALWAYS_INLINE uint8_t qsub8(uint8_t i, uint8_t j)
Subtract one byte from another, saturating at 0x00.
Definition math8.h:103

References CRGB(), FASTLED_FORCE_INLINE, and qsub8().

+ Here is the call graph for this function: