Skip to content
/ color Public

Color.js - small javascript library for manipulating with a color.

License

Notifications You must be signed in to change notification settings

olton/color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Color.js - small javascript library for manipulating with a color.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published