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)">

'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