Single-pass palette refinement and ordered dithering

18 points by pekkavaa