Skip to main content

Function: convertHexToRGB()

convertHexToRGB(hex): Color

Convert a hex color string to a normalized color array for use within strahl.

Parameters

hex: string

The hex color string (e.g. #ff0055)

Returns

Color

The color in normalized format (0-1)

Defined in

util/hex-to-rgb.ts:16