-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (41 loc) · 2 KB
/
index.html
File metadata and controls
50 lines (41 loc) · 2 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Curve Viewer</title>
</head>
<body style="margin: 0px;">
<div id="buttons">
<button type="button" id="clearButton">Clear</button>
<button type="button" id="autoCatmullButton">Auto Catmull</button>
<button type="button" id="catmullButton">Catmull</button>
<button type="button" id="lagrangeButton">Lagrange</button>
<span> | </span>
<label for="xCoordinate">X:</label>
<input type="number" id="xCoordinate" value="0" min="-945" max="945">
<label for="yCoordinate">Y:</label>
<input type="number" id="yCoordinate" value="0" min="-445" max="445">
<button type="button" id="addPointButton">Add Point</button>
<button type="button" id="exportButton" style="float: right;">Export function</button>
<div id="selectors">
<label for="density">Curve Density:</label>
<input type="range" min="5" max="500" value="100" class="slider" id="density">
<p>|</p>
<input type="checkbox" id="cartesianToggle">
<label for="cartesianToggle">Toggle Cartesian plane</label>
<p>|</p>
<input type="checkbox" id="gridToggle">
<label for="gridToggle">Toggle Grid</label>
<p>|</p>
<input type="checkbox" id="functionToggle">
<label for="functionToggle">Function mode (clears screen)</label>
<p>| >>click to add a point, click and drag to change its position | >>Drag and drop an exported curve to import</p>
</div>
</div>
<canvas id="tipCanvas"></canvas>
<canvas id="canvas"></canvas>
</body>
<script type="module" src="./dist/script.js"></script>
</html>