RGB function

RGB(Red, Green, Blue) RGB(Red; Green; Blue)

Red

Number or { Number }

The red color component. Must be between 0 and 255 (inclusive).

Green

Number or { Number }

The green color component. Must be between 0 and 255 (inclusive).

Blue

Number or { Number }

The blue color component. Must be between 0 and 255 (inclusive).

Returns

Color or { Color }

A color based on the given color components.

Returns a color based on the given color components according to the Red-Green-Blue (RGB) color model.

This function is Calcapp-specific.

Examples

RGB(255, 0, 0)RGB(255; 0; 0)

Returns a color corresponding to Color.RedColor,Red.

RGB({ 255, 0, 0 }, { 0, 255, 0 }, { 0, 0, 255 })RGB({ 255; 0; 0 }; { 0; 255; 0 }; { 0; 0; 255 })

Returns the array { Color.Red, Color.Green, Color.Blue }{ Color,Red; Color,Green; Color,Blue }.