Examples of polygons drawn by path vs polygon in SVG

前端 未结 1 525
日久生厌
日久生厌 2020-12-29 04:47

I would like to learn SVG, and am trying to learn how the same image can be rendered by using either the point (with polygon) or by dynamically by paths (path).

I wo

1条回答
  •  清歌不尽
    2020-12-29 05:34

    It's trivial: You can basically take the points attribute of a polygon and turn it into a path's d attribute by prepending M and appending z.

    
      
      
    

    0 讨论(0)
提交回复
热议问题