Example to show continuous real-time drawing of polygons