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

RGB

Convert RGB colors to HSL.

import { fromRGB } from 'HSL'

Array

Pass the channels as an array.

const hsl = fromRGB([ R , G , B ]);

Alpha

Optionally include an Alpha channel.

const hsla = fromRGB([ R , G , B , A ]);