CColorRef:Set
The Set method initializes the red, green, and blue color members. Individual color members can be set directly as properties, as in rgb.R, rgb.G, and rgb.B for a CColorRef named rgb.
CColorRef:Set( R, G, B ) |
The following script fragment sets the values for all 3 color components:
|
-- create a new CColorRef |
|
-- set to orange |
|
-- result: Color: 255,100,0 |