Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__
src
.gitignore
.prettierrc
LICENSE.md
README.md
package-lock.json
package.json
tsconfig.esm.json
tsconfig.json

README.md

colorjs

This library started as a companion to a blog post, Pattern Matching Custom Data Types in Typescript, but has grown into a fun side project to learn how to convert color formats like RGB, HSL, etc.

The source code is organized into some color utils that handle parsing and converting color formats, and color classes that represent the different formats. Testing is done with Jest.

Conversion formulas were derived from the helpful info on rapidtables.com.

You can’t perform that action at this time.