invert

fun invert(): RGB

Inverts the color by subtracting each channel from 255 in the RGB color space.

Return

The inverted color as an RGB.