CColorRef:Get
The Get method returns the red, green, and blue color components as numbers. This is a class version of the StrToRgb function.
R, G, B = CColorRef:Get() where |
R, G, and B are the returned color component values. On failure, 0, 0, 0 is returned.
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: Values: 2550, 10.2, 0.12 |