Tiny helper library for color operations or conversions.
npm install color-helpers
Or if you are using yarn:
yarn add color-helpers
The following conversions are supported:
rgb
⟷hex
hsv
⟷hsl
hsv
⟷rgb
hsl
⟷rgb
Darken or lighten a color. Color can either be a hex string or an array containing the rgb value.
The percentage range is -1 - +1
. Use positive numbers to lighten the color and negative
values to darken it.
Mix two colors together. Percentage range is from 0 - 1
.
MIT, see LICENSE.md