polygon

fnDrawShape polygon(string points, string viewBox, string styleName = "")

Constructs a polygon shape.

Parameters

pointsSpace-separated coordinate pairs (e.g. "0,0 100,0 50,100").
viewBoxSVG viewBox (e.g. "0 0 100 100").
styleNameOptional draw:style-name.

Returns

A DrawShape with DrawShapeKind.POLYGON.