Color.js

Color conversion & manipulation library by the editors of the CSS Color spe...

README

Color.js: Let’s get serious about color


Installation


Install via npm:

  1. ```
  2. npm install colorjs.io
  3. ```

For quick experiments, you can just import Color.js directly from the CDN with all modules included:

  1. ```js
  2. import Color from "https://colorjs.io/dist/color.js";
  3. ```

You can also import specific modules:

  1. ```js
  2. import Color from "https://colorjs.io/src/color.js";
  3. import p3 from "https://colorjs.io/src/spaces/p3.js";
  4. import rec2020 from "https://colorjs.io/src/spaces/rec2020.js";
  5. import deltaE200 from "https://colorjs.io/src/deltaE/deltaE2000.js";
  6. ```

Warning: To use `import` statements in a browser, your `