Implement polygon drawing.