Polygon - xkp/Doc GitHub Wiki
Represents a polygon based on a point list.
<polygon id="p1" fill="pink" stroke="brown" line_width="3" alpha="40">
<polygon_point id="point1" x="300" y="300"/>
<polygon_point id="point2" x="300" y="250"/>
<polygon_point id="point3" x="390" y="200"/>
<polygon_point id="point4" x="350" y="400"/>
</polygon>
points: Only valid on declarations, an array of polygon will be supplied on the xml. Every point will have (x, y) plus an optional id which will make that point visible via script.
fill: string, represents how the rectangle will be filled. Conforms to the HTML5 standard.
stroke: string, represents how the rectangle's border will be drawn. Conforms to the HTML5 standard.
line_width: int, represents how thick the border will be.