1.0.2 • Published 7 years ago

@lukaszewczak/hsl-to-hex v1.0.2

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

hsl-to-hex

Convert HSL colors to RGB colors in hex format.

Install

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

Sample hsl-to-hex module based on Node Cookbook

1.0.2

7 years ago

1.0.0

7 years ago