-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcss_and.html
More file actions
37 lines (32 loc) · 1.29 KB
/
Copy pathcss_and.html
File metadata and controls
37 lines (32 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>SVG Example</title>
<style>
.a {
font-size: 2em;
}
.b {
font-size: 1em;
}
</style>
</head>
<body>
<svg width="1500" height="1500">
<rect x="0" y="0" width="100" height="100" fill="rgb(255, 0, 0)"></rect>
<rect x="120" y="0" width="100" height="100" fill="rgb(0, 200, 255)"></rect>
<rect x="0" y="120" width="100" height="100" fill="rgb(10, 100, 100)"></rect>
<rect x="120" y="120" width="100" height="100" fill="rgba(0, 255, 0, 0.3)" stroke="black" stroke-width="10"></rect>
<circle cx = 100 cy = 100 r="50" fill="none" stroke="black"></circle>
<line x1="0" y1="0" x2="200" y2="200" height="100" stroke="rgb(255, 75, 255)"></line>
<path d="M105 105 L123 15 L69 69 L250 20z" fill="yellow" stroke="blue" stroke-width="7"></path>
<text class="a" x="0" y="115">SVG goes hard!</text>
<g transform="translate(50,100)">
<circle cx = 100 cy = 100 r="50" fill="none" stroke="black"></circle>
<circle cx = 150 cy = 100 r="50" fill="none" stroke="black"></circle>
<circle cx = 200 cy = 100 r="50" fill="none" stroke="black"></circle>
</g>
</svg>
</body>
</html>