Color::Or

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

Or combines two colors by performing a binary "or" 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 "or" 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 "or" 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 "or" of the two colors (c1 | c2). * 

* - pertains to static function only. 

See Also