version 1
CT Index to color (index) Longint
| Parameter | Type | Description | |
| index | Integer | Palette index | |
| Function result | Longint | Color described by index |
Description
CT Index to color returns the color described by index.
Index is an integer that specifies a particular color on the 4th Dimension color palette. Colors on the 4th Dimension palette are numbered from 1 to 256.
CT Index to color is a convenient way to specify a color without knowing the individual components.
Example
This example places the color value of the color Cyan (palette index #8) into the vColor variable:
vColor:=CT Index to color(8)
See Also
CT Color to index, CT COLOR TO RGB, CT RGB to color.