1.

How to draw a close ended polygon in SVG?

Answer»

'polygon' tag of SVG is used to draw a polygon. Following is the commonly used attribute −

points - List of points to make up a polygon.

Example −

<polygon points = "150,75 258,137.5 258,262.5 150,325 42,262.6 42,137.5" stroke = "black" stroke-width = "3" fill = "rgb(121,0,121)">


Discussion

No Comment Found