-
Notifications
You must be signed in to change notification settings - Fork 1
/
application.html
34 lines (34 loc) · 1.61 KB
/
application.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>VisualHull2D - Application</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<table>
<tr>
<td>
<canvas id="cv" width="750" height="500"></canvas>
</td>
<td>
<textarea id="log" readonly></textarea>
</td>
</tr>
</table>
<div id="controls">
<button type="button" onclick="generate();" id="generate">Generate</button> |
Speed:<input class="slider" type="range" value="1" min="-2" max="8" step="0.1" id="speed" /> |
<button type="button" onclick="stop = true;" id="stop">Stop</button> |
<button type="button" onclick="log.reset();" id="clear">Clear log</button><br/><br/>
<button type="button" onclick="start(naive);" id="naive">Naïve</button>
<button type="button" onclick="start(smart_naive);" id="smart_naive">Smart Naïve</button>
<button type="button" onclick="start(gift);" id="gift">Gift Wrapping</button>
<button type="button" onclick="start(quickhull);" id="quickhull">QuickHull</button>
<button type="button" onclick="start(chain);" id="chain">Monotone Chain</button>
<button type="button" onclick="start(graham);" id="graham">Graham Scan</button>
<button type="button" onclick="start(kirk_seidel);" id="kirk_seidel">Kirkpatrick-Seidel</button>
</div>
<script src="application.js"></script>
</body>
</html>