Small and simple color manipulation library.
Use Yarn or npm.
yarn add bitcolor
# or npm
npm i bitcolor
Just use exported functions!
import { fromRgb, toHexString, blend } from 'bitcolor'
const red = fromRgb(255, 0, 0)
const blue = fromRgb(0, 0, 255)
const purple = blend(red, blue)
console.log(toHexString(purple)) // #ff00ff
See CONTRIBUTING.md.