One way
Please experiment @Sarthak ; only you know what you want to do and expect to happen.
DrawShape( pointList , fill ) draws a shape on the canvas. pointList should be a list contains sub-lists with two number which represents a coordinate. The first point and last point does not need to be the same. e.g. ((x1 y1) (x2 y2) (x3 y3)) When fill is true, the shape will be filled.
