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.Arguments
- Gui gui - GUI, to which the dialog will belong.
- string str - Dialog title. This is an optional parameter.
Last update:
2020-04-10
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)