Function Entry: VLE-RGB2ACI

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: VLE-RGB2ACI

Name

vle-rgb2aci

Class

BricsCAD VLE Library Function

Syntax

(vle-rgb2aci rgb)

Arguments and Values

  • rgb an integer specifying the RGB value
  • red an
  • integer specifying the red value part (0…255)
  • green an
  • integer specifying the green value part (0…255)
  • blue an
  • integer specifying the blue value part (0…255)

Description

(vle-rgb2aci red green blue) Returns the closest ACI color index for specified RGB color value.

Return Values

always returns an integer value

Examples

(vle-rgb2aci 0 0 255)
 returns  5

(vle-rgb2aci 0 76 57)  returns
128

(vle-rgb2aci 16711680)  returns 5

Notes

the vle-extension.lsp emulation for non-BricsCAD systems only supports the (vle-rgb2aci red green blue) syntax !

Availability

  • AutoCAD 2026: not documented.
  • BricsCAD V26: documented.
  • Status: BricsCAD-only.

Source Notes