Skip to content

Latest commit

 

History

History
25 lines (23 loc) · 431 Bytes

README.md

File metadata and controls

25 lines (23 loc) · 431 Bytes

hsl-to-hex

Convert HSL colors to RGB colors in hex format. HSL转换成RGB16进制

Install

npm install --save @wangbaolong/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