@anzerr/color.util
Version:
Color transformation util between HSL, HSV, HUE and RGB
24 lines (18 loc) • 599 B
Markdown

Color transformation util between HSL, HSV, HUE and RGB
[]: https://raw.githubusercontent.com/anzerr/color.util/master/example.bmp "Example"
![alt text][logo]
``` bash
npm install --save git+https://github.com/anzerr/color.util.git
npm install --save @anzerr/color.util
```
``` javascript
const {rgb, hsl} = require('color.util');
let a = rgb(255, 0, 0).totoHsv();
console.log(a); // ?
let b = hsl(...a).toRgb();
console.log(b); // [255, 0, 0]
```