-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
60 lines (57 loc) · 1.94 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
<!DOCTYPE HTML>
<html>
<head>
<!-- Load the Paper.js library -->
<script type="text/javascript" src="paper/dist/paper-full.js"></script>
<script type="text/javascript" src="src/BezierCurve.js"></script>
<script type="text/javascript" src="src/BSplineCurve.js"></script>
<script type="text/javascript" src="src/CanvasManager.js"></script>
<script type="text/javascript" src="src/main.js"></script>
</script>
<meta charset="utf8">
<title>Michael Nilsson</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<canvas id="myCanvas" resize></canvas>
<div id="gui">
<div class="menubox">
<div class="textAreaBox">
<p class="menutitle">load B-spline txt file</p>
</div>
<div class="buttonBox">
<input id="loadFile" type='file' accept='text/plain'>
</div>
</div>
<div class="menubox">
<div class="textAreaBox">
<p class="menutitle">Create new curve</p>
</div>
<div class="buttonBox">
Degree:
<input type="number" id="degreeField" name="degree" min="1" max="5" size="2" value="3">
</div>
<div class="buttonBox">
<button id="startBtn" type='button'>Start</button>
</div>
<div class="buttonBox">
<button id="endBtn" type='button' disabled = "true">End</button>
</div>
</div>
<div class="menubox">
<div class="textAreaBox">
<p class="menutitle">Clear the canvas</p>
</div>
<div class="buttonBox">
<button id="clearBtn" type='button'>Clear</button>
</div>
</div>
</div>
<div id="infoBox">
<div id="adaptive"></div>
<div id="tesselation"></div>
<div id="showSamples"></div>
<div id="showPolygon"></div>
</div>
</body>
</html>