Color::XOr

Color::XOr
static inline Color XOr(Color c1, Color c2);
inline Color& XOr(Color c);
Description

XOr combines two colors by performing a binary "xor" on each channel (c1 ^ c2). For Color objects, the same equation is used.

Parameters
Parameters 
Description 
Color c1 
The first (the destination) of two color parameters that is combined to form a new color (return value). * 
Color c2 
The second (the source) of two color parameters that is combined to form a new color (return value). * 
Color c 
A color (the source) applied using the binary "xor" operation to the current color (the destination). 
Return Value

The member function, taking one parameter (c), returns a Color reference to the current string, which is obtained by performing a binary "xor" of the passed color and the original color (this ^ c) 

The static function, taking two parameters (c1 and c2), returns a new color by value, which is obtained by performing a binary "xor" of the two colors (c1 ^ c2). * 

* - pertains to static function only. 

See Also