And combines two colors by performing a binary "and" on each channel (c1 & c2). For Color objects, the same equation is used.
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 "and" operation to the current color (the destination). |
The member function, taking one parameter (c), returns a Color reference to the current string, which is obtained by performing a binary "and" 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 "and" of the two colors (c1 & c2). *
*- pertains to static function only.