ColourTransformer(uuid?: string, defaultValue?: TColorData)
Requires:
@ray-js/panel-sdk≥1.0.0
Description
Standard color light DP protocol converter for bidirectional conversion between HSV values and the device DP hexadecimal protocol
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
uuid | string | No | DP identifier, defaults to 'colour_data' |
| No | Default HSV value returned when parsing fails |
Return Value
Type: ColourTransformer
ColourTransformer instance
Methods
| Method | Description |
|---|---|
| parser | Parse a DP hexadecimal string into an HSV value object |
| formatter | Format an HSV value object as a DP hexadecimal string |