When it comes to converting colors based on the difference between two sample colors, there are a few approaches you can take. One common method is to calculate the color difference using various color models like RGB, or HSL. Once you have the color difference value, you can then apply it to your target color to achieve the desired result.
yarn
node index.js