为了账号安全,请及时绑定邮箱和手机立即绑定

svg circle设置渐变

svg circle没有径向渐变吗?有的话  如何设置

正在回答

1 回答

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

<defs>

<radialGradient id="grad3" cx="0.5" cy="0.5" r="0.7" fx="0.5" fy="0.5">

<stop offset="0" stop-color="rgb(20,151,252)" />

<stop offset="0.5" stop-color="rgb(164,105,190)" />

<stop offset="1" stop-color="rgb(255,140,0)" />

</radialGradient>

</defs>

<rect x="100" y="100" fill="url(#grad3)" width="200" height="200" />

<circle cx="500" cy="200" r="100" fill="url(#grad3)" />

</svg>


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

svg circle设置渐变

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信