1.0.9 • Published 7 years ago

hsl-to-rgb-lightweight v1.0.9

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

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

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago