1. 选基准:随机选一个元素作为基准(pivot)
Фото: Beata Zawrzel / NurPhoto via Getty Images,更多细节参见heLLoword翻译官方下载
Warning: this article contains images some readers might find upsetting.,详情可参考safew官方版本下载
Comparison between the TIN, Knoll’s algorithm, and N-convex dithering using an 8-colour irregular palette. Left to right: TIN, Knoll, N-convex (N=4).