-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsvg_path_basic.html
More file actions
35 lines (33 loc) · 944 Bytes
/
svg_path_basic.html
File metadata and controls
35 lines (33 loc) · 944 Bytes
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
<!DOCTYPE html>
<html>
<head>
<style>
* {
-webkit-transition: all .5s linear;
transition: all .5s linear;
}
</style>
</head>
<body>
<div style="border:solid 1px black; width:300px; height:300px; margin:0px auto;">
<svg>
<!--
M = Move to (what you start at)
L = Line to (move pen to X Y)
H = Horizontal line to (one param, X)
V = Vertical line to (one param, Y)
Z = Closes path at end (optional)
Lowercase letters = relative distances
Uppercase letters = absolute distances
-->
<path stroke="blue" stroke-width="5" fill="none"
d="M 50 50 L 50 100"
/>
<g stroke-width="2" stroke="black">
<circle fill="white" cx="50" cy="50" r="4" />
<circle fill="white" cx="50" cy="100" r="4" />
</g>
</svg>
</div>
</body>
</html>