CT COLOR TO RGB

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

version 1


CT COLOR TO RGB (color; red; green; blue)

ParameterTypeDescription
colorLongintColor value (internal to 4D Chart)
redLongintReceives red value (0 to 65535)
greenLongintReceives green value (0 to 65535)
blueLongintReceives 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.


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