gpt4 book ai didi

svg - 如何将 svg 代码保存为 .svg 图像?

转载 作者:行者123 更新时间:2023-12-03 05:47:51 30 4
gpt4 key购买 nike

如何将以下 svg 代码另存为 .svg 图像

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

<defs>
<linearGradient id="fill" x1="0%" y1="0%" x2="0%" y2="100%">
<stop offset="0%" style="stop-color:rgb(224,224,224);stop-opacity:1"/>
<stop offset="100%" style="stop-color:rgb(153,153,153);stop-opacity:1"/>
</linearGradient>
</defs>

<path d="M 0 0 L 64 0 L 32 64 z" stroke="colourname" fill="url(#fill)"/>

</svg>

如有任何帮助,我们将不胜感激。谢谢。

最佳答案

只需将其保存在文本文件中并为其指定 .svg 扩展名。

关于svg - 如何将 svg 代码保存为 .svg 图像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12628968/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com