version 1
CT COLOR TO RGB (color; red; green; blue)
Parameter | Type | Description | |
color | Longint | Color value (internal to 4D Chart) | |
red | Longint | Receives red value (0 to 65535) | |
green | Longint | Receives green value (0 to 65535) | |
blue | Longint | Receives blue value (0 to 65535) |
Description
CT COLOR TO RGB breaks down the color value in color and returns values in the variables representing the red, green, and blue components.
Example
This example gets the component RGB values for a color variable and places them in several local variables:
$color:=100000 CT COLOR TO RGB($color;$red;$green;$blue)
See Also
CT Color to index, CT Index to color, CT RGB to color.