Skip to content

dos_getcolor

Dale Fugier edited this page Jul 1, 2026 · 1 revision

Displays a Windows common color selection dialog box. This is useful for selecting Red-Green-Blue (RGB) color values.

Syntax

(dos_getcolor title [default])

Parameters

title

A string containing the dialog box title.

default

An integer between 1 and 255 that represents an ACI color value, or a list of three integers that represent an RGB color value.

Returns

A list of three integers that represent an RGB color value if successful.

nil on error.

Examples

Command: (dos_getcolor "Select a color" 1)
(255 0 0)

Clone this wiki locally