Unigine.WidgetDialogColor Class
Inherits from: | 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.
string WebColor#
The currently selected color in the web format.
vec4 Color#
The currently selected color.
Members
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.
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:
2024-12-13
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)