扫个二维码,直接体验。👉🏽项目地址html
效果以下图git
这里颜色提取使用了开源项目color-thief, 其中算法部分使用了 Leptonica color-quantization 中用到的(调整)中位切分法(MMCQ, modified median cut quantization),有兴趣的朋友能够看看。github