Nefarious Planetary Meddling

    color-conversions

    0.1.2 • Public • Published

    color-conversions Build Status

    Color conversion functions

    Install

    npm install --save color-conversions
    component install andrepolischuk/color-conversions

    Usage

    var conversions = require('color-conversions');
     
    conversions.hex2rgb('fff'); // [255, 255, 255]
    conversions.hsl2cmyk(60, 100, 50, 0); // [0, 0, 100, 0]
    conversions.keyword2hsv('red'); // [0, 100, 100]

    API

    Module has two-way conversion functions for color models:

    • RGB
    • Keyword
    • HEX
    • CMYK
    • HSL
    • HSV

    License

    MIT

    Install

    npm i color-conversions

    DownloadsWeekly Downloads

    52

    Version

    0.1.2

    License

    MIT

    Last publish

    Collaborators

    • avatar