DR Index to color

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

version 6.0


DR Index to color (index) Longint

ParameterTypeDescription
indexIntegerPalette index
Function resultLongintColor 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

DR Color to index.


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