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

◆ operator-()

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

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

Definition at line 208 of file crgb.hpp.

209{
210 return CRGB( qsub8( p1.r, p2.r),
211 qsub8( p1.g, p2.g),
212 qsub8( p1.b, p2.b));
213}
LIB8STATIC_ALWAYS_INLINE uint8_t qsub8(uint8_t i, uint8_t j)
Subtract one byte from another, saturating at 0x00.
Definition math8.h:103
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:54

References FASTLED_FORCE_INLINE, and qsub8().

+ Here is the call graph for this function: