lokesh / color-thief

Grab the color palette from an image using just Javascript. Works in the browser and in Node.

Home Page:https://lokeshdhakar.com/projects/color-thief/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code duplication between color-thief-node.js and core.js

coffee-converter opened this issue · comments

It would be great to set this up so that the core.js code was actually core to both the browser and nodejs libraries. Instead, right now createPixelArray() and validateOptions() are both implemented twice identically.