RGB(Variable, Variable, Variable) Function

Top 

Description

Returns a FreeFlyer color representing the specified color components.

 

Timing Precision Mode

This page describes functionality in millisecond timing precision mode. Millisecond timing precision mode is deprecated and will be removed in a future release. We recommend that you migrate your Mission Plans to nanosecond timing precision mode.

 

Function Signature

RGB(

Variable r,


Variable g,


Variable b)

 

 

Arguments

r


Description:

The red component of the color.

Valid Range:

0 ≤ r ≤ 1

 

 

g


Description:

The green component of the color.

Valid Range:

0 ≤ g ≤ 1

 

 

b


Description:

The blue component of the color.

Valid Range:

0 ≤ b ≤ 1

 

 

 

Return Value

Type:

number

 

 

A color value.

 

Syntax

myVariable1 = RGB(myVariable2, myVariable3, myVariable4);

 

 

See also

RGB