最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

SVG制作简单图形的实例介绍

来源:懂视网 责编:小采 时间:2020-11-27 15:07:49
文档

SVG制作简单图形的实例介绍

SVG制作简单图形的实例介绍:圆形 circle<svg width="200" height="200" > <circle cx="100" cy="100" r="80" stroke="green" stroke-width="4&
推荐度:
导读SVG制作简单图形的实例介绍:圆形 circle<svg width="200" height="200" > <circle cx="100" cy="100" r="80" stroke="green" stroke-width="4&

圆形 circle

<svg width="200" height="200" >
 <circle 
 cx="100" 
 cy="100" 
 r="80" 
 stroke="green" 
 stroke-width="4" 
 fill="none"/>
</svg>

矩形 rect

<svg>
 <rect 
 x="10" 
 y="10" 
 rx="5" 
 ry="5" 
 width="150" 
 height="100" 
 stroke="red" 
 fill="none">
 </rect>
</svg>

椭圆 ellipse

<svg>
 <ellipse 
 cx="400" 
 cy="60" 
 rx="70" 
 ry="50" 
 stroke="red" 
 fill="none">
 </ellipse>
</svg>

线 line

<svg>
 <line 
 x1="10" 
 y1="120" 
 x2="160" 
 y2="220" 
 stroke="red">
 </line>
</svg>

折线 polyline

<svg>
 <line 
 x1="10" 
 y1="120" 
 x2="160" 
 y2="220" 
 stroke="red">
 </line>
</svg>

多边形 polygon

<svg>
 <polygon 
 points="250 120 
 300 220
 200 220"
 stroke="red"
 stroke-width="5"
 fill="yellow"
 transform="translate(150 0)">
 </polygon>
</svg>

路径 path

可用于路径数据的命令
M = moveto
L = lineto
H = horizontal lineto
V = vertical lineto
C = curveto
S = smooth curveto
Q = quadratic Belzier curve
T = smooth quadratic Belzier curveto
A = elliptical Arc
Z = closepath

<svg>
 <path 
 d="M250 150 L150 350 L350 350 Z" />
</svg>

文档

SVG制作简单图形的实例介绍

SVG制作简单图形的实例介绍:圆形 circle<svg width="200" height="200" > <circle cx="100" cy="100" r="80" stroke="green" stroke-width="4&
推荐度:
标签: 制作 简单 图案
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top