forked from 4iz268/cviceni
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpath.html
39 lines (29 loc) · 879 Bytes
/
path.html
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
38
39
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Paths in SVG</title>
</head>
<body>
<h1>Paths in SVG</h1>
<!--
http://www.w3schools.com/graphics/svg_path.asp
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/path
M = moveto
L = lineto
H = horizontal lineto
V = vertical lineto
C = curveto
S = smooth curveto
Q = quadratic Bézier curve
T = smooth quadratic Bézier curveto
A = elliptical Arc
Z = closepath
All of the commands above can also be expressed with lower letters. Capital letters means absolutely positioned, lower cases means relatively positioned.
-->
<svg height="640" width="480">
<path d="M0 0 L200 0 200 200 q200 0 100 100" stroke="yellow" stroke-width="3" fill="dodgerblue"/>
<path d="M0 0 L200 200 q-200 200 100 100" stroke="red" stroke-width="3" fill="yellow"/>
</svg>
</body>
</html>