fast-colorthief icon indicating copy to clipboard operation
fast-colorthief copied to clipboard

Question: Percentage of each color in the palette

Open JerickoDG opened this issue 1 year ago • 1 comments

Hi, first of all. I would like to thank you for making this library. But how can I determine the corresponding percentages or how much each color makes up the image? For instance, if black was detected and was dominant in the image, it comprises 0.80 or 80% of the image. Perhaps the ranking of the colors in the palette if there is a method for it.

I hope for your response regarding my question. Thank you again.

JerickoDG avatar Jan 23 '24 15:01 JerickoDG

Hello, using this library you cannot get the percentage of each color. But the colors in the palette should be ordered by their representation in the image.

bedapisl avatar Jan 24 '24 07:01 bedapisl