for (int i = n - 1; i = 0; i--) {
You look at a region of the image. If all the pixels are roughly the same color (below some threshold), you store the average color for the whole region as a single value. If the pixels vary too much, you split the region into four quadrants and try again.
,详情可参考谷歌浏览器【最新下载地址】
Фото: Yevhen Prozhyrko / Shutterstock / Fotodom
Mostly JS-ecosystem. See report for per-ecosystem breakdowns.