@usmchessler/hsl-to-hex

1.0.2 • Public • Published

hsl-to-hex

Convert HSL colors to RGB colors in hex format

Install

npm install --save @usmchessler/hsl-to-hex

##API

require('hsl-to-hex') => Function
hsl(hue, saturation, luminosity)` => String

##Example

var hsl = require('hsl-to-hex');
var hue = 133;
var saturation = 40;
var luminosity = 60;
var hex = hsl(hue, saturation, luminosity);
console.dir(hex); //#70c282

##Testing npm test

Licence

ISC

Readme

Keywords

none

Package Sidebar

Install

npm i @usmchessler/hsl-to-hex

Weekly Downloads

4

Version

1.0.2

License

ISC

Unpacked Size

11.1 kB

Total Files

15

Last publish

Collaborators

  • usmchessler