SVG制作简单的图形
2024-08-25 11:26:02
圆形 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>
最新文章
- MVP -----个人理解与示例(android例子 实现)
- 『TCP/IP详解——卷一:协议』读书笔记——02
- Eclipse+Tomcat部署项目的一些总结
- core--线程同步(内核模式)
- HW6.15
- [译]Stairway to Integration Services Level 3 - 增量导入数据
- JavaScript 中的事件流和事件处理程序(读书笔记思维导图)
- 虚拟机安装麒麟3.2时报unkown filesystem,you need to load the linux kernel first
- poi解析excel
- [USACO 12DEC]Running Away From the Barn
- 7-27 Codeforces Round #499 (Div. 2)
- 2018-2019-2 20175202实验二《Java面向对象程序设计》实验报告
- 微信分享config:ok 但自定义内容无效
- 深度学习中 droupout层是咋回事??
- Vue小案例 之 商品管理------创建页面与部分数据
- H - 【59】Lazier Salesgirl 模拟//lxm
- P3871 [TJOI2010]中位数
- LeetCode403. Frog Jump
- 嵌套循环连接(nested loops join)原理
- SQLYog Enterprise注册码分享