CT RGB to color

4D - Documentation   Français   English   German   4D Chart, Command Theme List   4D Chart, Command Alphabetical List   Back   Previous   Next

version 1


CT RGB to color (red; green; blue) Longint

ParameterTypeDescription
redLongintRed value (0 to 65535)
greenLongintGreen value (0 to 65535)
blueLongintBlue value (0 to 65535)
Function resultLongintValue of the color (internal to 4D Chart)

Description

CT RGB to color returns a value that represents the red, green, and blue components. This number is used in several 4D Chart commands.

The red, green, and blue parameters are the same as those used in the Macintosh Color Picker.

The following table shows the values for red, green, and blue in three commonly used colors:

ColorRedGreenBlue
red5668322421698
green0327684528
blue0054272

Example

This example sets a color variable for the color red:

   $color:=CT RGB to color(56683;2242;1698)

See Also

CT Color to index, CT COLOR TO RGB, CT Index to color.


4D - Documentation   Français   English   German   4D Chart, Command Theme List   4D Chart, Command Alphabetical List   Back   Previous   Next