Library version of the planar graphics tool.