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 33 of file crgb.hpp.

34{
35 r = fl::qsub8( r, rhs.r);
36 g = fl::qsub8( g, rhs.g);
37 b = fl::qsub8( b, rhs.b);
38 return *this;
39}

References CRGB(), FASTLED_FORCE_INLINE, and FL_NOEXCEPT.

+ Here is the call graph for this function: