This package has been deprecated

Author message:

renamed to color-tf

colorutil

4.1.2 • Public • Published

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'

/colorutil/

    Package Sidebar

    Install

    npm i colorutil

    Weekly Downloads

    1

    Version

    4.1.2

    License

    ISC

    Unpacked Size

    25.9 kB

    Total Files

    9

    Last publish

    Collaborators

    • caub