1.0.3 • Published 3 years ago
@paulobontempo/hsl-to-hex v1.0.3
hsl-to-hex
convert HSL colors to RGB colors in hex format
install
npm install --save @paulobontempo/hsl-to-hex
API
require('hsl-to-hex') => function
hsl(hue, saturation, luminosity) => string
Example
const hsl = require('hsl-to-hex')
const hue = 123
const saturation = 40
const luminosity = 60
const hex = hsl(hue, saturation, luminosity)
console.log(hex) // #70c282
Liscense
ISC