https://github.com/lazhari/hsl-to-hex
hsl-to-hex package
https://github.com/lazhari/hsl-to-hex
github-registry hsl node npm-package
Last synced: about 1 month ago
JSON representation
hsl-to-hex package
- Host: GitHub
- URL: https://github.com/lazhari/hsl-to-hex
- Owner: Lazhari
- Created: 2019-10-31T21:34:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T11:05:44.000Z (over 3 years ago)
- Last Synced: 2025-03-15T05:42:28.915Z (over 1 year ago)
- Topics: github-registry, hsl, node, npm-package
- Language: JavaScript
- Size: 123 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hsl-to-hex
[](https://travis-ci.org/Lazhari/hsl-to-hex)
[](https://sonarcloud.io/dashboard?id=Lazhari_hsl-to-hex)
[](https://sonarcloud.io/dashboard?id=Lazhari_hsl-to-hex)
[](https://sonarcloud.io/dashboard?id=Lazhari_hsl-to-hex)
[](https://sonarcloud.io/dashboard?id=Lazhari_hsl-to-hex)
[](https://sonarcloud.io/dashboard?id=Lazhari_hsl-to-hex)
Convert HSL colors to RGB colors in hex format.
## Install
```sh
npm install --save @lazhari/hsl-to-hex
```
## API
```
require('hsl-to-hex') => Function
hsl(hue, saturation, luminosity) => String
```
## Example
```js
const hsl = require("@lazhari/hsl-to-hex");
const hue = 133;
const saturation = 40;
const luminosity = 60;
const hex = hsl(hue, saturation, luminosity);
console.log(hex); // #70c282
```
## License
MIT