How to make a “bent rectangle” in SVG?

前端 未结 2 396
夕颜
夕颜 2021-01-21 04:50

I have a project I am working on that requires me to make a circular navigation with buttons that look like the bars around the Iron Man thing pictured below. I can draw simple

2条回答
  •  -上瘾入骨i
    2021-01-21 05:30

    Yeah SVG is the answer here. The base shape:

    
      
    
    

    This builds the shape using a path element as described here https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths and a little trigonometry.

提交回复
热议问题