当前位置:网站首页>Svg series - 2, draw some shapes
Svg series - 2, draw some shapes
2022-04-21 18:53:00 【_ Shredded pork noodles with sauerkraut_】
List of articles
rectangular rect
x,y: Starting point coordinates .( top left corner )
width,height: Wide and high .
rx,ry: radius . Specify one if , The other will be assigned the same value .
Four rectangles :
<rect fill="red" height="50%" width="50%" x="0" y="0"/>
<rect fill="pink" height="50%" width="50%" x="50%" y="0"/>
<rect fill="blue" height="50%" width="50%" x="0" y="50%"/>
<rect fill="yellow" height="50%" width="50%" x="50%" y="50%"/>
effect :

Rounded rectangle :
<rect fill="red" height="50%" width="50%" x="0" y="0" rx="40"/>
<rect fill="pink" height="50%" width="50%" x="50%" y="0" rx="80"/>
<rect fill="blue" height="50%" width="50%" x="0" y="50%" rx="120"/>
<rect fill="yellow" height="50%" width="50%" x="50%" y="50%" rx="50%"/>
effect :

round circle
cx,cy: The coordinates of the center of the circle .
r: radius .
<circle cx="300" cy="300" r="200" fill="pink"/>
effect :

The ellipse ellipse
cx,cy: The coordinates of the center of the circle .
rx,ry: Two radii .
<ellipse cx="300" cy="300" rx="300" ry="200" fill="pink"/>
effect :

A straight line line
x1,y1: Starting point coordinates .
x2,y2: End coordinates .
<line x1="0" y1="0" x2="300" y2="300" stroke="red" stroke-width="1"/>
effect :

Broken line polyline
points: Coordinate string .x1 y1,x2 y2,x3 y3…
<polyline points="50 0,61 35,98 35,68 57,79 91,50 70,21 91,32 57,2 35,39 35,50 0" fill="red" />
effect :

polygon polygon
Different from the broken line : The polygon closes automatically , end to end .
<polygon points="50 0,61 35,98 35,68 57,79 91,50 70,21 91,32 57,2 35,39 35" fill="red" />
effect :

route path
Too complicated , Let's not talk about .
版权声明
本文为[_ Shredded pork noodles with sauerkraut_]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204211847380012.html
边栏推荐
- JVM class loading mechanism
- [untitled]
- Win10 uwp accessing solution files
- Work summary! 15 suggestions for log printing
- Digital IC tutorial 02 quartz prime and Modelsim installation tutorial
- OBS接入网络摄像机
- 重温 JS栈和堆
- Understand the new economic model of platofarm and its ecological progress
- 108. 将有序数组转换为二叉搜索树(图文并解)
- Semaphore and exchange of concurrent tools
猜你喜欢

OBS接入网络摄像机
![[short-time amplitude spectrum] matlab simulation of short-time amplitude spectrum estimation in speech enhancement](/img/b5/a3843896a33bdb94dead3a9be489b8.png)
[short-time amplitude spectrum] matlab simulation of short-time amplitude spectrum estimation in speech enhancement

什么品牌的无线耳机质量最好?口碑好的蓝牙耳机推荐

This thing is called a jump watch?

The central bank defines the key points of payment supervision in 2022, and all platform enterprises should pay attention to clearing risks

Finally, wechat scanning code login is completed. It's really fragrant..

CVPR2022 Oral | CosFace、ArcFace的大统一升级,AdaFace解决低质量图像人脸识

How to adjust the speed and speed of preview video in PR;

86 r K-means, hierarchy, EM clustering introduction

Daily question series: water bottle
随机推荐
CheKine 系列高密度脂蛋白(HDL-C)含量检测方案
如何成为一个好的项目经理?
[04] [01] [01] redis Basics
DX12渲染引擎目录
VB 判断某数是否是素数。
The video course "vite Learning Guide - webify deployment project based on Tencent cloud" was launched "cloud + community"
Log4j log usage
Channel Allocation 别用四色定理
URL转码问题:URLDecoder.decode(str)过时,解决:decode(String s, String enc) throws UnsupportedEncodingExceptio
The number of waithandles must be less than or is reported in the manualresetevent when C multi line is used to add the database
Crystal Chem小鼠葡萄糖检测试剂盒说明书
序列化对象+Properties+IO框架
spfa判断是否存在负环
Chinese NER Using Lattice LSTM 论文解读
天旦发布云原生智能运维产品线,推出全球首个全栈可观测性技术标准
Apache Doris创建动态分区
Tencent cloud database tdsql -- blog database migration practice
mysql不能使用 mysql -u root -p 启动报错解决
【大话云原生】负载均衡篇-小饭馆客流量变大了
低密度脂蛋白研究丨LDL-C含量检测试剂盒方案