polygon
A polygon is a closed shape of connected straight-line segments. (It's a polyline that must be closed.) A polygon can be stroked and filled, and it can have the following attributes:
Attribute | Description |
---|---|
points
|
A list of points of the line segments that make up the polygon. All coordinate values are in the user coordinate system, and there must be an even number of coordinates. The start point and end point are automatically connected to form a closed shape. |
transform
|
See Transformations. This attribute is applied to an element before any other coordinate or length values supplied for that element are processed. |
Example:
Copy
<polygon points="350,75 379,161 469,161" style=" stroke:blue;stroke-width:3" />