Appearance
zeropdf / hex
Function: hex()
ts
function hex(value): RgbColor;Defined in: src/types.ts:3104
Creates an RGB color object from a CSS-style #RGB or #RRGGBB hex string.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | string | The #RGB or #RRGGBB color string to parse. |
Returns
The RGB color object.