Coloration
Installation
npm i coloration-lib --save
Requirements
Only for demo:
Demo
See a live demonstation
Usage
Examples
changeLuminosity
import {Coloration} from 'coloration-lib';
const color = new Coloration('red');
color.changeLuminosity(0.55);
console.log(color.toHEX());
maskColor
const color = new Coloration('red');
color.maskColor('blue', 0.25);
console.log(color.toHEX());
addColor
const color = new Coloration('red');
color.addColor({
h: -23,
v: 10,
alpha: -0.2
});
console.log(color.toHEX());
Publishing the library
ng build coloration --prod
cp *.md dist/coloration
cd dist/coloration
npm publish
Publishing the demo
ng build --prod
License
This module is released under the permissive MIT license. Your contributions are always welcome.