1.0.2 • Published 5 years ago
@closrks/hsl-to-hex v1.0.2
hsl-to-hex
convert HSL colors to RGB colors in hex format.
Install
npm install --save @closrks/hsl-to-hex
API
require('hsl-to-hex) => Function
hsl(hue, saturation, luminosity) => String
Example
const hsl = require('./');
const hue = 133;
const saturation = 40;
const luminosity = 60;
const hex = hsl(hue, saturation, luminosity);
console.log(hex); // #70c282
License
ISC