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 |
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.