Skip to content

hexToRgb

Function: hexToRgb()

function hexToRgb(hex): Vec3

Converts hex string to RGB

Parameters

hex

string

The hex value you with to get the RGB value of

Returns

Vec3

an array in the order of red, green, blue numerical values

Defined in

converter.ts:16