-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
65 lines (59 loc) · 1.47 KB
/
index.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta name="viewport" content="initial-scale=1">
<title>Rust canvas</title>
<link href="style.css" rel="stylesheet">
</head>
<body>
<div><canvas id="screen" width="320px" height="200px"></canvas></div>
<div>
<svg width="320px" height="280px" viewbox="0 0 1024 896">
<marker id="arrowhead"
markerWidth="10" markerHeight="10"
refX="5" refY="5"
orient="auto"
markerUnits="strokeWidth"
>
<path d="M3,3 l3,2 l-3,2" fill="none" stroke="#41f4a9" stroke-linecap="round"/>
</marker>
<g class="map"></g>
<g class="grid"></g>
<g class="camera">
<line
x1="160" y1="160"
x2="352" y2="160"
class="camera--sightline"
/>
<line
x1="160" y1="160"
x2="224" y2="160"
class="camera--direction"
marker-end="url(#arrowhead)"
/>
<line
x1="160" y1="160"
x2="224" y2="160"
class="camera--fov--left"
/>
<line
x1="160" y1="160"
x2="224" y2="160"
class="camera--fov--right"
/>
<circle
cx="160" cy="160" r="32"
class="camera--focus"
/>
<circle
cx="352" cy="160" r="32"
class="camera--target"
/>
</g>
</svg>
</div>
<script src="interactive-map.js"></script>
<script src="script.js"></script>
</body>
</html>