An open API service indexing awesome lists of open source software.

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

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