4.1.2 • Published 6 years ago

colorutil v4.1.2

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

Color model conversions between RGB, HSL, HSV and HWB, and more

sources:

naming convention:

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

Usage

import { hslToRgb, hsvToHex } from 'colorutil';

hslToRgb(200, 95, 62); // [ 66, 189, 250 ]
hsvToHex(200, 95, 62); // '086c9e'
4.1.2

6 years ago

4.1.1

6 years ago

4.1.0

6 years ago

4.0.1

6 years ago

4.0.0

6 years ago

3.0.2

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.0.0

7 years ago