ColorDialog
Displays a colour dialog in which the user can choose a colour.
Syntax
-
ColorDialog([c])
-
c
is a colour
-
Description
ColorDialog(c)
displays a colour dialog with c
as the preselected colour. c
may be a colour, a colour code (integer), or a string with a colour name or a HTML-like hexadecimal colour code.
If the user selects a colour, the function returns this colour. Otherwise, an error is raised, which can optionally be handled by succeeded
or try
.
Examples
ColorDialog("gold")
rgba(1.000, 0.843, 0.000, 1.000) (#FFD700, gold)