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

◆ operator-()

FASTLED_FORCE_INLINE CRGB fl::operator- ( const CRGB & p1,
const CRGB & p2 )

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

Definition at line 190 of file crgb.hpp.

191{
192 return CRGB( fl::qsub8( p1.r, p2.r),
193 fl::qsub8( p1.g, p2.g),
194 fl::qsub8( p1.b, p2.b));
195}
fl::CRGB CRGB
Definition video.h:15

References FASTLED_FORCE_INLINE, and FL_NOEXCEPT.