在svg地毯上涂抹地毯

问题描述 投票:-2回答:1

我有一个svg地毯需要在地毯上应用地毯条纹。

<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg">
  
  

  <!-- Points -->
  <circle cx="50" cy="50" r="20" fill="red"/>

</svg>

将这个圆圈视为地毯,我想将地毯应用为边框。我们如何动态扩展路径。

svg path svg-animate
1个回答
0
投票

你的问题不是很清楚。你的意思是你想在圆圈的边缘添加类似条纹的效果吗?

像这样?

<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg">
  
  <!-- Points -->
  <circle cx="50" cy="50" r="20" fill="red"
          stroke="black" stroke-width="6" stroke-dasharray="1 2"/>

</svg>
最新问题
© www.soinside.com 2019 - 2024. All rights reserved.