1.0.0 • Published 6 years ago

hsl-rgb v1.0.0

Weekly downloads
92
License
MIT
Repository
github
Last release
6 years ago

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