answer color

Displays the operating system's standard color-selection dialog box.

# Metadata

Platforms: desktop OS: mac, windows, linux Introduced: 1.1 Security:

# Syntax

answer color [with startingColor]

# Params

- startingColor : A <color reference> in one of the following forms: - a standard color name - three comma-separated integers between zero and 255, specifying the level of each of red, green, and blue - an HTML-style color consisting of a hash mark (#) followed by three hexadecimal numbers, one for each of red, green, and blue.

# Examples

answer color

if theItem is "Custom Color..." then answer color

answer color with "#FF0033"

answer color with "AliceBlue"

# Description

Use the answer color command to select a custom color.

The answer color command displays a dialog box where the user can select a color. (This dialog box is displayed by the operating system, not by LiveCode.)

If you specify a startingColor, the dialog box displays that color by default.

The color is returned in the form of three comma-separated integers between zero and 255, specifying the level of each of red, green, and blue. This format can be used directly to set any color property.

# Tags

ui,

# See

- **keyword:** it - **property:** systemColorSelector, backgroundColor, colors, foregroundColor - **command:** answer - **function:** result, colorNames - **control structure:** function - **glossary:** dialog box, variable, command, return, color reference