version 6.0
DR Index to color (index) Longint
| Parameter | Type | Description | |
| index | Integer | Palette index | |
| Function result | Longint | Color described by the palette index |
Description
The command DR Index to color is a convenient way to specify a color without knowing the individual color components, Red, Green, and Blue. Colors on the 4th Dimension palette are numbered 1 through 256. DR Index to color returns the color described by the palette index index.
index is an integer that specifies a particular color on the 4th Dimension palette.
Example
The following example sets the color of the currently selected objects in Area to light blue (Cyan).
DR SET FILL ATTRIBUTES (Area;0;3;DR Index to color (8))
See Also