Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Latest commit

 

History

History
30 lines (18 loc) · 313 Bytes

File metadata and controls

30 lines (18 loc) · 313 Bytes

HSL

Convert HSL colors to RGB.

import { fromHSL } from 'RGB'

Array

Pass the channels as an array.

const rgb = fromHSL([ H , S , L ]);

Alpha

Optionally include an Alpha channel.

const rgba = fromHSL([ H , S , L , A ]);