Skip to content

Consistent, Efficient, Professional color description library

License

Notifications You must be signed in to change notification settings

UI-DNA/Essence-Color

Repository files navigation

EssenceColor

🌈⚡
Consistent, Efficient, Professional color description library

get it following features:

  • describe colors in a object with any ColorModel, ColorSpace.
  • convert ColorSpace (sRGB, Adobe RGB, display P3, Lab...).
  • convert ColorModel (RGB,HSL,HSV,XYZ,CMYK ...).
  • append more ColorSpace support with ColorSpace definition(rXZY, gXYZ, bXYZ, wXYZ)
  • faster than the other color library.

Usage

Install

npm i -S essence-color

Import

// ES6 modules
import  EssenceColor from "essence-color"

// Node.js (CJS) modules
var  EssenceColor =  require ("essence-color")

// 浏览器载入
<script src="EssenceColor.umd.js"></script>

Doc