Optionalcolor?: stringColor, black by default
OptionallineStyle?: stringLine style (line|-|dot|.|dashdash|--|dashdotdot|-..|dashdotdotdot|-...|dashdashdash|---)
array of the vertexes points names of the polygon
Optionalthickness?: numberStroke thickness
the created polygon if isPromiseMode is false else promise that will be resolved when the object is displayed
Adds a polygon vertexes of which are given in the array points (array of the vertexes points names) syntaxes
addPolygon(points),addPolygon(points, color),addPolygon(points, color, lineStyle)andaddPolygon(points, color, lineStyle, thickness)are allowed too, where points is an array of points or name of points