svg画图分享

源代码:

<!DOCTYPE HTML >

<html >
<head>
 <meta http-equiv="Content-Type" content="text/html:charset=utf-8" />
    <title>无标题页</title>
</head>
<body>
<div style=" width:900px ;  height:900px; background-color:White; ">
 <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%">
 
<defs>
<radialGradient id="grey_blue" cx="20%" cy="40%" r="50%"
fx="50%" fy="50%">
<stop offset="0%" style="stop-color:rgb(200,200,200);
stop-opacity:0"/>
<stop offset="100%" style="stop-color:rgb(0,0,255);
stop-opacity:1"/>
</radialGradient>
</defs>

 <defs>
<linearGradient id="orange_red" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" style="stop-color:rgb(255,255,0);
stop-opacity:1"/>
<stop offset="100%" style="stop-color:rgb(255,0,0);
stop-opacity:1"/>
</linearGradient>
</defs>
    <circle cx="100" cy="100" r="40" fill="transparent" stroke="black" stroke-width="2px"> </circle>
    <polygon points="50,100  100,100  75,50" stroke="#660000" fill="#cc3333"> 
        <animateTransform 
            attributeName="transform" 
            begin="0s" 
            dur="10s" 
            type="rotate" 
            from="0 0 0" 
            to="360 60 60" 
            repeatCount="indefinite"  
        /> 
    </polygon> 
     <rect width="200" height="200" x="100" y="100" fill="red" rx="30" ry="30"></rect>
     <line x1="50" y1="50" x2="100" y2="100"  stroke="blue" stroke-width="5" stroke-opacity="0.5"></line>
   <ellipse cx="240" cy="100" rx="220" ry="30"style="fill:url(#orange_red)"/>
  
<path d="M153 334
C153 334 151 334 151 334
C151 339 153 344 156 344
C164 344 171 339 171 334
C171 322 164 314 156 314
C142 314 131 322 131 334
C131 350 142 364 156 364
C175 364 191 350 191 334
C191 311 175 294 156 294
C131 294 111 311 111 334
C111 361 131 384 156 384
C186 384 211 361 211 334
C211 300 186 274 156 274"
style="fill:white;stroke:red;stroke-width:2"/>
   <defs>
<filter id="Gaussian_Blur">
<feGaussianBlur in="SourceGraphic" stdDeviation="3" />
</filter>
</defs>

<ellipse cx="400" cy="150" rx="70" ry="40"
style="fill:url(#grey_blue);stroke:#000000;
stroke-width:2;filter:url(#Gaussian_Blur)"/>
 </svg>
</div>
</body>
</html>

 

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值