Comparing version 3.0.0 to 3.0.1
@@ -59,3 +59,3 @@ /* | ||
const f = (i&1) ? 1+i - h*6 : h*6 - i; // if i is odd | ||
const n = w + f * (v - w); | ||
const n = w + f * (v - w); // linear interpolation | ||
@@ -62,0 +62,0 @@ switch (i){ |
{ | ||
"name": "colorutil", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "RGB, HSL, HSV, HWB color models convertor", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,1 +1,6 @@ | ||
## Deprecated | ||
use color-convert | ||
### Usage | ||
@@ -21,24 +26,1 @@ | ||
| natural input/output | normalized [0,1] io | | ||
| :---: | :---: | | ||
| rgbToHsl | rgb2hsl | | ||
| rgbToHsv | rgb2hsv | | ||
| rgbToHwb | rgb2hwb | | ||
| rgbToHex | rgb2hex | | ||
| hslToRgb | hsl2rgb | | ||
| hslToHsv | hsl2hsv | | ||
| hslToHwb | hsl2hwb | | ||
| hslToHex | hsl2hex | | ||
| hsvToRgb | hsv2rgb | | ||
| hsvToHsl | hsv2hsl | | ||
| hsvToHwb | hsv2hwb | | ||
| hsvToHex | hsv2hex | | ||
| hwbToRgb | hwb2rgb | | ||
| hwbToHsl | hwb2hsl | | ||
| hwbToHsv | hwb2hsv | | ||
| hwbToHex | hwb2hex | | ||
| hexToRgb | hex2rgb | | ||
| hexToHsl | hex2hsl | | ||
| hexToHsv | hex2hsv | | ||
| hexToHwb | hex2hwb | |
6768
26