@anzerr/color.util

Color transformation util between HSL, HSV, HUE and RGB

Usage no npm install needed!

<script type="module">
  import anzerrColorUtil from 'https://cdn.skypack.dev/@anzerr/color.util';
</script>

README

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]