|
|
Donner 0.5.1
Embeddable browser-grade SVG2 engine
|
Creates a closed polygon with straight lines between the points, using the points attribute.
The <polygon> element draws a closed shape defined by a list of vertex coordinates. SVG connects the points in order with straight line segments, then automatically closes the shape by drawing one final segment from the last point back to the first. Use it for triangles, stars, arrows, speech-bubble tails, and any other straight-edged closed figure.
The only difference between <polygon> and "<polyline>" is that closing segment: a polyline stays open (it looks like a connected sequence of line segments), while a polygon is always a closed region that can be filled. For curved shapes, use "<path>" instead.
| Attribute | Default | Description |
|---|---|---|
| points | (none) | List of points that make up the polygon, see Polyline/Polygon Points List. |