answer color | ||||||||||
Type | command | |||||||||
Dictionary | LCS | |||||||||
Library | LiveCode Script | |||||||||
Syntax |
| |||||||||
Summary | Displays the operating system's standard color-selection dialog box. | |||||||||
Introduced | 1.1 | |||||||||
Changes | The option to specify a startingColor was introduced in version 1.1.1. In previous versions, the dialog box displayed white by default. | |||||||||
OS | mac, windows, linux | |||||||||
Platforms | desktop | |||||||||
Parameters |
| |||||||||
Example |
| |||||||||
Values |
| |||||||||
Related | Keyword: it Property: systemColorSelector, backgroundColor, colors, foregroundColor Command: answer Function: result, colorNames Control Structure: function Glossary: dialog box, variable, command, return, color reference | |||||||||
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 |