Draft: wallpapers/color: simplified better accent color generator
The accent color is extracted using the Android method, which includes:
- Wu's quantization algorithm
- K-Means for color quantization by Celebi
- Color scores based on hue proportions and chroma.
Then a dominant color is extracted from the clusters, and the final color will be adjusted to be not too dark or too light. If the color collection is empty, the default Breeze Blue color will be used.
Reference:
- https://www.ece.mcmaster.ca/~xwu/cq.c
- https://doi.org/10.1016/j.imavis.2010.10.002
- https://doi.org/10.1016/j.eswa.2022.117927
BUG: 457861 FIXED-IN: 5.26
Fallback color | csgo | grass | default | dark red | wave |
---|---|---|---|---|---|
Edited by Fushan Wen