0.2.0 • Published 2 years ago

coloroo v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Coloroo

Work-in-progress TypeScript/JavaScript library for colors, color-space, conversion, and manipulation.

Motivation (or Why This Library?)

I wanted a modern feeling API that uses TypeScript as a first-class citizen for Color containers and manipulation. Other libraries I've seen seem to have slightly complicated APIs, or the TypeScript definitions are an after-thought, or the code bases for them in general are generally hard to read.

Additional to this, I wanted to explore as many color-spaces and encoding formats as I could for this project while remaining flexible to add more as needed.

Installation

Like most libraries, it's the same ol' story:

npm install --save coloroo
yarn add coloroo

Test Coverage

Testing is provided by Mocha/Chai, with coverage reporting done by Istanbul/NYC.

Current test coverage is as follows:

File% Stmts% Branch% Funcs% Lines
All files100100100100
src100100100100
NamedColors.ts100100100100
RGB.ts100100100100
src/utils100100100100
math.ts100100100100
params.ts100100100100
regexp.ts100100100100

Contibuting

I welcome contributions if you have some. Currently I don't have any formatting requirements since this is mostly a pasion project at the time. So I suppose, just fill out an issue or PR as per usual for repos.

License

Under the MIT licens, see LICENSE file for more details.