lokesh / color-thief

Grab the color palette from an image using just Javascript. Works in the browser and in Node.
https://lokeshdhakar.com/projects/color-thief/
MIT License
12.67k stars 1.31k forks source link

Option to provide number of colors that should be given #245

Open Codemaine opened 1 year ago

jdvlpr commented 1 month ago

I second this. Specifically in my app it would be great to be able to change the maximum number of colors from 20 to 50. For now I'm using a fork that has this hard-coded in.