Unigine.WidgetDialogColor Class
Inherits: | WidgetDialog |
This class creates a dialog with clickable color field, RGB value sliders, color parameters and a predefined palette. There are two color formats available:
- Standard format, which represents colors as four-component vectors.
- Web format, which allows these variants: RRGGBB, RRGGBBAA, #RRGGBB, #RRGGBBAA.
WidgetDialogColor Class
Properties
string PaletteColors#
The current palette colors.
set
Fills the palette with given colors.
set value -
List of colors in the Web format separated with semicolons.
string WebColor#
The currently selected color in the web format.
set
Selects a color in the web format.
set value -
Color in the Web format.
vec4 Color#
The currently selected color.
set
Selects a given color.
set value -
Color.
Members
static WidgetDialogColor ( Gui gui, string str = 0 ) #
Constructor. Creates a color picker dialog with given parameters and adds it to the specified GUI.Arguments
- Gui gui - GUI, to which the dialog will belong.
- string str - Dialog title. This is an optional parameter.
static WidgetDialogColor ( string str = 0 ) #
Constructor. Creates a color picker dialog with given parameters and adds it to the Engine GUI.Arguments
- string str - Dialog title. This is an optional parameter.
Last update:
2020-07-31
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)