5.1.2 • Published 6 years ago

color-tf v5.1.2

Weekly downloads
8
License
ISC
Repository
github
Last release
6 years ago

Color transforms between RGB, HSL, HSV and HWB, and more

npm version build status coverage status

sources:

naming convention:

  • foo2bar: input and output are in 0, 1
  • fooToBar: natural ranges: hues in [0, 360[, r/g/b in 0, 255, saturation/value/lightness in 0, 100

The default export is a proxy, there are also direct functions available

Usage

import colorTf from 'color-tf';
import hsl2hsv from 'color-tf/hsl2hsv';

colorTf.hslToRgb(200, 95, 62); // [ 66, 189, 250 ]
console.assert(hsl2hsv === colorTf.hsl2hsv);
5.1.2

6 years ago

5.1.1

6 years ago

5.1.0

6 years ago

5.0.4

6 years ago

5.0.3

6 years ago

5.0.2

6 years ago

5.0.1

6 years ago

5.0.0

6 years ago

5.0.0-beta1

6 years ago