Skip to main content

Function: hexToRgb()

hexToRgb(hexCode): Rgb

Defined in: src/utils/color.ts:89

Convert a color (hex string) to an [r, g, b] float array (0.0..1.0).

Parameters​

hexCode​

string

Returns​

Rgb