Fast way of getting the dominant color of an image
Your general approach should work, but I’d highlight some details. Instead of your given list of colors, generate a number of color “bins” in the color spectrum to count pixels. Here’s another question that has some algorithms for that: Generating spectrum color palettes Make the number of bins configurable, so you can experiment to get … Read more