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.

Syntax

CColorRef:Set( R, G, B )

bullet.gif    whereR, G, and B are numbers in the range 0 to 255.

Example

The following script sets the values for all 3 color components:

C = new_colorref()

-- create a new CColorRef

C:Set(255,100,0)

-- set to orange

Printf("Color: %d,%d,%d", C:Get() )

-- result: Color: 255,100,0

Related Topics

CColorRef, Get


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.