UNPKG

replace-multiple-color

Version:

Replace multiple color with another one pixel by pixel.

9 lines (7 loc) 211 B
const deltaE = require('delta-e') module.exports = (LAB1, LAB2, formula) => { return deltaE[`getDelta${formula}`]( { L: LAB1[0], A: LAB1[1], B: LAB1[2] }, { L: LAB2[0], A: LAB2[1], B: LAB2[2] } ) }