@olton/color
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • 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.

Package Sidebar

Install

npm i @olton/color

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

42 kB

Total Files

5

Last publish

Collaborators

  • olton