AlfredJKwack

Results 42 comments of AlfredJKwack

Hi, Not sure what you're after here. Are you looking to know how many pixels have the exact RGB value returned by color-thief? What about similar colors, ie. colors that...

Pixels that are mostly transparent (or almost white) are completely ignored by design. See code [#L122-L127](https://github.com/lokesh/color-thief/blob/master/src/color-thief.js#L122-L127)

Fork and implement a patch of your own at [#L122-L127](https://github.com/lokesh/color-thief/blob/master/src/color-thief.js#L122-L127)

That is a laudable objective. The example you need is here: https://lokeshdhakar.com/projects/color-thief/ Kindly showcase your progress in this thread.

Color-Thief implements an underlying library to create the color palette. Your issue is actually with that library:[olivierlesnicki/quantize/](https://github.com/olivierlesnicki/quantize/ ), not with Color-Thief itself.

Oopsie. Was doing some winter cleaning.