An SVG polygon. The coordinates must form a list called Points. (the difference with Polyline is that the last coordinate is reconnected to the first)
i1 : Polygon{Points=>{(0,10),(100,10),(90,90),(0,80)},"stroke"=>"red","fill"=>"white"}
o1 = Polygon{cache => CacheTable{} }
fill => white
Points => {| 0 |, | 100 |, | 90 |, | 0 |}
| 10 | | 10 | | 90 | | 80 |
| 0 | | 0 | | 0 | | 0 |
| 1 | | 1 | | 1 | | 1 |
stroke => red
o1 : Polygon
|
The object Polygon is an instance of the type GraphicsType, with ancestor classes GraphicsPoly < GraphicsObject < HashTable < Thing.