ColorPicker
The ColorPicker can be used to select a color from various color palettes.
![ColorPicker 1:](Images/png/10497729675__Web.png)
Use
Can be used on any page where it is necessary to select a color.
Features
Color selection can be done using different color spaces.
HSL Ring
All colors are selected without shading.
![ColorPicker 2:](Images/png/10497732619__Web.png)
HSV Circle
Selection of all colors up to white.
![ColorPicker 3:](Images/png/10497735563__Web.png)
HSL Rect All color
Selection of all colors up to black.
![ColorPicker 4:](Images/png/10497776907__Web.png)
HSL Rect single
Selection of all shades of a color. To change the color, change the attribute BackgroundColor.
![ColorPicker 5:](Images/png/10497779851__Web.png)
Attributes
The control inherits from TcHmiControl and thus has the same attributes. In addition, there are the following attributes.
ColorPlateType
tchmi:framework#/definitions/TcHmi.BuildingAutomation.Controls.ColorPlateType
Defines the color palette used.
BackgroundColor
tchmi:framework#/definitions/SolidColor
Determines the background color when the HslRect1 color palette is selected.
SelectedSolidColor (read-only)
tchmi:framework#/definitions/SolidColor
Selected color.
SelectedRgbaColor (read-only)
tchmi:framework#/definitions/TcHmi.BuildingAutomation.RGBAColor
Selected color in RGBA format.
Events
Event | Description |
---|---|
onSelectedColorChanged | Triggered when the selected color has changed. |