CColorRef:Get
The Get method returns the red, green, and blue color components as numbers in the range 0 to 255.
R, G, B = CColorRef:Get() |
On success the 3 color components R, G, and B are returned.
On failure, this method returns 0, 0, 0.
The following script returns the 3 color components. In this example, C:Get() is the last (or only) argument to Printf, so all 3 returned values can be obtained within the call to Printf:
|
-- create a new CColorRef |
|
-- set to orange |
|
-- result: Color: 255,100,0 |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.