https://github.com/herber-legacy-4-varld-1/hsl-triad
🍭 Generate a color triad.
https://github.com/herber-legacy-4-varld-1/hsl-triad
color hsl triad
Last synced: 3 months ago
JSON representation
🍭 Generate a color triad.
- Host: GitHub
- URL: https://github.com/herber-legacy-4-varld-1/hsl-triad
- Owner: varld
- License: mit
- Created: 2018-10-01T13:40:20.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-01T08:15:41.000Z (about 6 years ago)
- Last Synced: 2024-08-09T09:39:49.251Z (about 1 year ago)
- Topics: color, hsl, triad
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
# hsl-triad [](https://travis-ci.org/varld/hsl-triad) [](https://codecov.io/gh/varld/hsl-triad)
> Generate a color triad.
## Install
```
$ npm install hsl-triad
```## Usage
```js
const hslTriad = require('hsl-triad');hslRgb(340, 1, 0.5);
//=> [
//=> [340, 1, 0.5],
//=> [100, 1, 0.5],
//=> [220, 1, 0.5]
//=> ]
```## API
### hslRgb(h, s, l)
#### h
Type: `number`
Max: `360`The hue
#### s
Type: `number`
Max: `1`The saturation
#### l
Type: `number`
Max: `1`The lightness
#### Retuns
Type: `array`
An array of arrays containing `hsl` values.
## License
MIT © [Tobias Herber](http://herber.space)
![]()