MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / invertColor

Function invertColor

src/custom/dep.cpp:618–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616}
617
618static inline
619unsigned int invertColor(const unsigned int color) noexcept
620{
621 return (color & 0xff000000)
622 | (0xff0000 - (color & 0xff0000))
623 | (0xff00 - (color & 0xff00))
624 | (0xff - (color & 0xff));
625}
626
627static inline
628bool invertPaintForDarkMode(const DarkMode mode, NSVGshape* const shape, NSVGpaint& paint, const char* const svgFileToInvert)

Callers 2

invertPaintForDarkModeFunction · 0.85
invertPaintForLightModeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected