For each pixel, the dominant color is determined, and a corresponding tile (which could be a small rectangle of a specific color) is chosen.