DAZ Script | |
---|---|
Color | customColor ( Number i ) |
Number | customCount () |
Color | getColor ( Color initial=Color ) |
void | setCustomColor ( Number i, Color c ) |
void | setStandardColor ( Number i, Color c ) |
A global static object available via the Global::ColorDialog variable.
This object provides functions to display an OS native color picker to the user - simply call the function as shown in the following example:
Example - Have the user select a color :
var clrUser = ColorDialog.getColor();
Other functions are provided for getting and setting the pre-set colors listed in the picker - see the rest of the documentation for details.
Color : customColor( Number i )
Return Value:
Number : customCount()
Return Value:
Color : getColor( Color initial=Color )
Shows a color picker dialog to the user.
Parameter(s):
Return Value:
void : setCustomColor( Number i, Color c )
Set the i'th custom color in the color picker.
void : setStandardColor( Number i, Color c )
Set the i'th standard color in the color picker.