Color::Inverse

Color::Inverse
static inline Color Inverse(Color c);
inline Color& Inverse();
Description

Inverse returns a new color formed by subtracting the current color from 1.0 (or 255 if 8 bit). For Color objects, the actual equation used for each 8 bit channel is: 255 - c.

Parameters
Parameters 
Description 
Color c 
A color that is inverted to form the new color (return value). 
Return Value

A new Color, formed by inverting each RGBA channel.

See Also