CColorRef:Invert
The Invert method complements the color members of the CColorRef object by subtracting from the maximum value of 255. For example, color value 240 becomes value 15 or value 100 becomes value 155.
CColorRef:Invert() |
The following script complements the color:
|
-- create a new CColorRef |
|
-- set orange |
|
-- invert the color |
|
-- result: 0,135,255 |