Get_color_ext - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Description
Opens a color picker dialog and returns the selected color. Allows for a custom title bar caption to be set.
Parameters
Parameter | Description |
---|---|
defcol | The default color value to have selected. |
Return Values
double: Returns the color the user selected if "Ok" was pressed. Returns -1 on cancellation.
Example Call
// Example of using the color picker with a custom caption to mock YoYo's British spelling preferences.
col = get_color(c_red, "C-O-L-O-R is better than C-O-L-O-U-R!");
if (col != -1)
image_blend = col;
else
show_error("Color not selected!", false);
NOTOC