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