Color Operators

Color Operators
Operators
Operator 
Description 
- 
Subtracts the second color from the first. 
-= 
Subtracts another color from the current color. 
* 
Modulates the first color with the second. 
*= 
Modulates another color with the current color. 
& 
And's the two colors together. 
&= 
And's another color with the current color. 
+ 
Adds the two colors together. 
+= 
Adds another color to the current color. 
!= 
Determines the inequality of two colors. 
^ 
XOr's the two colors together. 
^= 
XOr's another color with the current color. 
| 
Or's the two colors together. 
|= 
Or's another color with the current color. 
~ 
Returns a new color formed from the bitwise NOT of the current color. 
= 
Assigns the current color to the value of the passed color. 
== 
Determines the equality of two colors.