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';; // { r: 127, g: 0, b: 127 } ; // rgb(183, 0, 71); // #7F007F; // hsl(0, 0%, 255%); // hwb(40, 0%, 214%) ; // red; // blue; // undefined
License
MIT