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() |
The following script fragment 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 |