Skip to content

dos_rgbtoaci

Dale Fugier edited this page Dec 1, 2018 · 1 revision

Converts a Red-Green-Blue (RGB) color value to the closest AutoCAD Color Index (ACI) value.

Syntax

(dos_rgbtoaci red green blue)
(dos_rgbtoaci rgb)

Parameters

red

The red component of an RGB color value.

green

The green component of an RGB color value.

blue

The blue component of an RGB color value.

rgb

An RGB color value.

Returns

An ACI color value if successful.

nil on error.

Example

Command: (dos_rgbtoaci 0 0 255)
5
Command: (dos_rgbtoaci 16711680)
5
Clone this wiki locally