Converter to convert between various color systems such as RGB, CIELAB, CMYK, HEX, RGB, and XYZ
npm install @mindpowered/colorconverter
colorconverter
==============
Converter to convert between various color systems such as RGB, CIELAB, CMYK, HEX, RGB, and XYZ
Contents
========
* Source Code and Documentation
* About
* Requirements
* Installation
* Usage
* Support
* Licensing
The second challenge to defining a color is that it depends on the observer. Viewing the same color will look different when:
- printed on paper or displayed on a screen
- seen in daylight or under fluorescent lighting
- positioned at a close or far distance
Standard references such as the Pantone Matching System refer to specific colors. We lose information when converting from a reference color to a color system. Printing or rendering an RGB or CMYK color equivalent to a reference color may not match. We can avoid information loss during conversion by using an unlimited gamut such as LAB. We must also take into account the effect of the observer and illumination.
This package aims to provide tools to perform:
- Color conversion between color systems
- A way of searching for similar standardized reference colors
Third-party dependencies may have additional requirements.
You can retrieve the colorconverter package using npm https://www.npmjs.com/. After initializing your packages.json file in your project’s directory with npm init, you can install the colorconverter package with
```
npm i @mindpowered/colorconverter --save--save
hint: the option will add the newly installed dependency in your packages.json file.
You can also add the package directly to your packages.json file.
...
javascriptlet mpccc = require('@mindpowered/colorconverter');
const {ColorConverter} = mpccc;
let cc = new ColorConverter();
let colors = cc.FromHEX("#336699");
``There is also a public [Issue Tracker][bugs] available for this package.
[bugs]: https://github.com/mindpowered/color-converter-js/issues
[contact]: https://mindpowered.dev/support/?ref=color-converter-js/
[docs]: https://mindpowered.github.io/color-converter-js/
[licensing]: https://mindpowered.dev/?ref=color-converter-js
[purchase]: https://mindpowered.dev/purchase/