Skip to content

Latest commit

 

History

History
45 lines (24 loc) · 709 Bytes

README-HEAD.md

File metadata and controls

45 lines (24 loc) · 709 Bytes

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