version 1
CT RGB to color (red; green; blue) Longint
Parameter | Type | Description | |
red | Longint | Red value (0 to 65535) | |
green | Longint | Green value (0 to 65535) | |
blue | Longint | Blue value (0 to 65535) | |
Function result | Longint | Value 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:
Color | Red | Green | Blue |
red | 56683 | 2242 | 1698 |
green | 0 | 32768 | 4528 |
blue | 0 | 0 | 54272 |
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.