rgb(
RED
,
GREEN
,
BLUE
,
ALPHA
)

The rgb( function creates a color by combining red, green, and blue primary colors. See Colors.


Parameters

This function has four parameters:

red – is the intensity of the red component of this color. This must be a number from 0 (completely dark) to 65535 (full intensity).

green – is the intensity of the green component of this color. This must be a number from 0 (completely dark) to 65535 (full intensity).

blue – is the intensity of the blue component of this color. This must be a number from 0 (completely dark) to 65535 (full intensity).

alpha – is the opacity component of this color. This must be a number from 0 (transparent) to 65535 (fully opaque). This parameter is optional, if ommitted, the alpha component defaults to fully opaque.


Description

This function creates a color by combining red, green, and blue primary colors. See Colors.

The example below changes the color of any object named Border to orange.

local Orange
Orange=rgb( 65535 , 23356 , 2936 )
selectobjects objectinfo("name") = "Border"
changeobjects "color",Orange

See Also


History

VersionStatusNotes
10.0UpdatedCarried over from Panorama 6.0, but now includes an optional alpha (opacity) component.