And that's the triangulation done. In the process I learned that in fact, the polygon from clipping a triangle against a square can have up to 7 vertices, not just 6. #pico8