1.0.0 • Published 5 years ago
@tomas.tomecek/hsl-to-hex
Licence
ISC
Version
1.0.0
Deps
1
Size
9 kB
Vulns
0
Weekly
0
hsl-to-hex
Convert HSL colors to RGB colors in hex format.
Install
npm install --save @tomas.tomecek/hsl-to-hex
API
require('hsl-to-hex') => Function
hsl(hue, saturation, luminosity)` => String
Example
const hsl = require('hsl-to-hex')
const hue = 133
const saturation = 40
const luminosity = 60
const hex = hsl(hue, saturation, luminosity)
console.log(hex) // #70c282
License
ISC