hsl-rgb

1.0.0 • Public • Published

hsl-rgb Build Status codecov

Convert hsl colors to rgb colors

Install

$ npm install hsl-rgb

Usage

const hslRgb = require('hsl-rgb');
 
hsl2rgb(340, 1, 0.5);
//=> [255, 0, 85]

API

hslRgb(h, s, l)

h

Type: number Max: 360

The hue

s

Type: number Max: 1

The saturation

l

Type: number Max: 1

The lightness

Retuns

Type: array

An array of r, g and b values.

License

MIT © Tobias Herber

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2,203
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2,203

Package Sidebar

Install

npm i hsl-rgb

Weekly Downloads

1,816

Version

1.0.0

License

MIT

Unpacked Size

3.25 kB

Total Files

4

Last publish

Collaborators

  • tobihrbr