用SVG画只小猪

SVG初学者
无聊先画只小猪

<svg height="300" width="300" xmlns:xlink="http:''www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">
<circle id="c1" cx="100" cy="130" r="15" style="stroke:#333;fill:none;"></circle>
<circle id="c2" cx="200" cy="130" r="15" style="stroke:#333;fill:none;"></circle>
<circle id="c3" cx="108" cy="130" r="8" style="stroke:#333;fill:#333;"></circle>
<circle id="c4" cx="208" cy="130" r="8" style="stroke:#333;fill:#333;"></circle>
<ellipse id="e1" cx="150" cy="180" rx="50" ry="25" style="stroke:#333;fill:none;"></ellipse>
<ellipse id="e2" cx="130" cy="180" rx="10" ry="15" style="stroke:#333;fill:pink;"></ellipse>
<ellipse id="e3" cx="170" cy="180" rx="10" ry="15" style="stroke:#333;fill:pink;"></ellipse>

<path id="p1" d="M 64 100 L 50 60" style="stroke:#333;fill:none;"></path>
<path id="p2" d="M 50 60 L 98 65" style="stroke:#333;fill:none;"></path>
<path id="p3" d="M 201 65 L 250 50" style="stroke:#333;fill:none;"></path>
<path id="p4" d="M 250 50 L 236 100" style="stroke:#333;fill:none;"></path>

<ellipse id="e4" cx="50" cy="165" rx="25" ry="10" style="stroke:#333;fill:pink;"></ellipse>
<ellipse id="e5" cx="250" cy="165" rx="25" ry="10" style="stroke:#333;fill:pink;"></ellipse>

<circle id="c0" cx="150" cy="150" r="100" style="stroke:#333;fill:none;"></circle>

<text x="130" y="270" style="font-family:sans-serif;font-size:14pt;">小猪</text>
</svg>

效果图
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值