/color.util

Color transformation util between HSL, HSV, HUE and RGB

Primary LanguageJavaScriptMIT LicenseMIT

Intro

GitHub Actions status | publish

Color transformation util between HSL, HSV, HUE and RGB

alt text

Install

npm install --save git+https://github.com/anzerr/color.util.git
npm install --save @anzerr/color.util

Example

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]