Converts a Hsl value to scalar units, or parses a colour string and converts it.
toScalar({ h: 100, s: 50, l: 100, unit: `absolute` });toScalar(`red`); Copy
toScalar({ h: 100, s: 50, l: 100, unit: `absolute` });toScalar(`red`);
Converts a Hsl value to scalar units, or parses a colour string and converts it.