hsl-to-rgb-lightweight
v1.0.9
Published
The most lightweight ES6 color converter that you will ever find.
Downloads
7
Maintainers
Readme
hsl-to-rgb-lightweight
Why do I made this?
- Because the existing packages wasn't written for ES6+
- Because I wanted something REALLY lightweight for a very specific scenario.
Getting started
How to install:
npm install hsl-to-rgb-lightweight --save
How to use:
import { HLSToRGB } from 'hsl-to-rgb-lightweight';
let rgbColor = HLSToRGB.convert(223, 0.44, 0.56)
Expected values
- Hue: [0, 360)
- Saturation: [0, 1]
- Lightness: [0, 1]
Extra notes
- The code is well commented, feel free to read it.
- Ready for jsdoc and typedoc.
Acknowledgements
- Based in hsl-to-torgb-for-reals by kayellpeee.