-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
28 lines (23 loc) · 904 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>randomPolys.js</title>
<link rel="stylesheet" href="./src/demo/index.css">
<script type="module" src="./src/demo/demo.js"></script>
</head>
<body>
<canvas id="canvas" width="450" height="450"></canvas>
<p><strong>Number of points:</strong> <span id="points-value"></span></p>
<div class="slidecontainer">
<input type="range" min="3" max="100" value="10" class="slider" id="points-range">
</div>
<p><strong>Epsilon:</strong> <span id="epsilon-value"></span></p>
<div class="slidecontainer">
<input type="range" min="1" max="20" value="1" class="slider" id="epsilon-range">
</div>
<br>
<button id="new-polygon">New polygon</button>
<button id="reset">Reset</button>
</body>
</html>