https://github.com/madjava/hsl-to-hex
Testing module creation in NodeJS
https://github.com/madjava/hsl-to-hex
Last synced: over 1 year ago
JSON representation
Testing module creation in NodeJS
- Host: GitHub
- URL: https://github.com/madjava/hsl-to-hex
- Owner: madjava
- Created: 2019-09-14T16:04:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T02:30:06.000Z (over 3 years ago)
- Last Synced: 2025-02-12T14:47:57.659Z (over 1 year ago)
- Language: JavaScript
- Size: 214 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hsl-to-hex
Convert HSL colors to RGB colors in hex format.
## Install
```sh
npm install --save @madjava/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