Painter%27s algorithm

undefined