MCPcopy Create free account
hub / github.com/FastLED/FastLED / operator-

Method operator-

src/fl/gfx/crgb.h:367–370  ·  view source on GitHub ↗

Invert each channel

Source from the content-addressed store, hash-verified

365
366 /// Invert each channel
367 constexpr CRGB operator-() const FL_NOEXCEPT
368 {
369 return CRGB(255 - r, 255 - g, 255 - b);
370 }
371
372#if (defined SmartMatrix_h || defined SmartMatrix3_h)
373 /// Convert to an rgb24 object, used with the SmartMatrix library

Callers

nothing calls this directly

Calls 1

CRGBClass · 0.70

Tested by

no test coverage detected