@olton/color

1.0.2 • Public • Published

Color.JS

Color.js - small javascript library for manipulating with a color. ColorJS is a javascript class designed to work with color. The class implements methods for conveniently working with color, converting it to various formats and generating special color schemes. Color.js provides simple API that may be used to create colors (HEX, RGB, RGBA, HSV, HSL, HSLA, CMYK), and perform various color related operations (conversions and such) and create any color schemes (complementary, triple, ...)

Install

npm i @olton/color

Using

import Color from "@olton/color"

const col = new Color("#fff")

console.log(color.toRGB()); // RGB {r: 255, g: 255, b: 255}
console.log(color.toRGB().toString()); // rgb(255,255,255)

License

This software is free to use under the MIT license. See the LICENSE file for license text and copyright information.

/@olton/color/

    Package Sidebar

    Install

    npm i @olton/color

    Weekly Downloads

    11

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    103 kB

    Total Files

    5

    Last publish

    Collaborators

    • olton