color-to-color
Transform color to color based with percentage
Install
With npm
npm i color-to-color -S
Usage
const fromColor = 'red';
const toColor = 'blue';
tctc(fromColor).toColor(toColor).withPercent(50).get();
tctc(fromColor).toColor(toColor).withPercent(28).get('rgb');
tctc(fromColor).toColor(toColor).withPercent(50).get('hex');
tctc(fromColor).toColor(toColor).withPercent(100).get('hsl');
tctc(fromColor).toColor(toColor).withPercent(84).get('hwb');
tctc(fromColor).toColor(toColor).withPercent(0).get('keyword');
tctc(fromColor).toColor(toColor).withPercent(100).get('keyword');
tctc(fromColor).toColor(toColor).withPercent(65).get('keyword');
License
MIT