Code files
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
# hsl-to-hex
|
||||
|
||||
Convert HSL colors to RGB colors in hex format.
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
npm install --save @davidmarkclements/hsl-to-hex
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
```
|
||||
require('hsl-to-hex') => Function
|
||||
hsl(hue, saturation, luminosity)` => String
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
```js
|
||||
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
|
||||
Reference in New Issue
Block a user