2.0.1 • Published 3 years ago

@andyrunciman/hsl-to-hex v2.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

hsl-to-hex

Convert HSL colors to RGB colors in hex format.

Install

npm install --save @andyrunciman/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.log(hex); // #70c282

License

ISC

2.0.1

3 years ago

1.0.0

3 years ago