Skip to content

zeropdf v1.3.0


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

ParameterTypeDescription
valuestringThe #RGB or #RRGGBB color string to parse.

Returns

RgbColor

The RGB color object.

Released under the ISC license.