svg的path问题?

funnyF2E
  • 788

`<path d="m106,93c3,0 4.31001,0.33749 7,2c3.60901,2.23049 6.71413,6.21168 9,9c0.89659,1.09367 3,2 3,3c0,1 -0.49345,1.87856 -1,5c-0.32036,1.97418" id="svg_8" stroke-linecap="null" stroke-linejoin="null" stroke-dasharray="null" stroke-width="5" stroke="#000000" fill="none"></path>

<path d="M5,100A95,95 0,1,1 195,100A95,95 0,1,1 5,100" style="stroke-dasharray: 597, 599; stroke-dashoffset: 0;"></path>
上面path中93c3 、100A95是什么意思?路径中为什么会有字母?

回复
阅读 2k
2 个回答

不是93c3

m106,93
c3,0 4.31001,0.33749 7,2

同理A的也相似

具体的各个字母定义可以参考

1
2

路径数据字母意思:
M = moveto
L = lineto
H = horizontal lineto
V = vertical lineto
C = curveto
S = smooth curveto
Q = quadratic Bézier curve
T = smooth quadratic Bézier curveto
A = elliptical Arc
Z = closepath

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏