我需要的,如果CX,CY和r改变绘制绕了一圈如何获得svg的循环路径?
Circle
cx=110,cy=60,r=50
Path
d=M60,60 A50,50 0 0,1 160,60
<svg style="position:absolute" id="svg_test" version="1.1" xmlns="http://www.w3.org/2000/svg">
<circle style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);" cx="110" cy="60" r="50" fill="none" stroke="#e4e4e4" stroke-width="2"></circle>
<path id="svgpath" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);" fill="none" stroke="#16a6b6" d="M60,60 A50,50 0 0,1 160,60" stroke-width="2"></path>
</svg>
如何确定路径中风弧?
Here公式给出d =“M cx cy + r + d A r + d r + d 0 0 0 cx + r + d cy”。
计算出的路径M110,110 + d + A50 d,用上述CX 50 0 0 0 150,60和cy不匹配值M60,60 A50,50 0 0,1 160,60
什么应该是d的值?
“d”代表什么意思?圆周的程度? –
公式中的d值是什么意思? –