4 ms·
I thought somewhere online there was a relatively-old (Material v1?) breakdown of how Android selects "main" colors (because it does a fairly good job imo), for
by Groxx 7mo ago
I thought somewhere online there was a relatively-old (Material v1?) breakdown of how Android selects "main" colors (because it does a fairly good job imo), for the Palette¹ class... but I'm having no luck finding it at all. I can (and will) just read its source code, but it doesn't carry along any qualitative justification or comparisons or etc and it'll take a fair bit of time to re-research that knowledge.
Does anyone know how this strategy differs? I've been wanting to build a product-color-selection-thing for stuff like fabric, where finding something that has similar tones is important, but I'm struggling to find much with concrete details about the strategy like this article has.
1: https://developer.android.com/reference/androidx/palette/graphics/Palette https://developer.android.com/reference/androidx/palette/gra... with most of the color selection logic here: https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:palette/palette/src/main/java/androidx/palette/graphics/ColorCutQuantizer.java https://cs.android.com/androidx/platform/frameworks/support/...