-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
88 lines (73 loc) · 1.84 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<html>
<head>
<title>Interpolation methods</title>
<style>
body {
font-family: 'lucida grande', tahoma, verdana, arial, sans-serif;
}
body > p {
font-size: 10px;
}
canvas {
border: 5px solid #eee;
}
form {
font-size: 12px;
}
form fieldset {
border: 0;
padding: 0;
}
form fieldset legend {
float: left;
font-weight: bold;
margin-right: 5px;
line-height: 20px;
}
form ul {
float: left;
list-style: none;
padding: 0;
margin: 0 10px 0 0;
}
form ul li {
display: inline-block;
}
form ul li input {
margin-right: 5px;
}
</style>
</head>
<body>
<h1>Interpolation Methods</h1>
<form>
<p>Click the canvas to place a point. Points can be dragged after being placed.</p>
<fieldset>
<legend>Interpolation method for Y</legend>
<ul>
<li>
<input type="radio" name="interpolate" id="linear" value="linear" checked />
<label for="linear">Linear</label>
</li>
<li>
<input type="radio" name="interpolate" id="cosine" value="cosine" />
<label for="cosine">Cosine</label>
</li>
<li>
<input type="radio" name="interpolate" id="cubic" value="cubic" />
<label for="cubic">Cubic</label>
</li>
<li>
<input type="radio" name="interpolate" id="hermine" value="hermine" />
<label for="hermine">Hermine</label>
</li>
</ul>
<button type="button" id="clear">Clear</button>
<button type="button" id="random">Random</button>
</fieldset>
</form>
<canvas width="600" height="600"></canvas>
<p>By <a href="http://alexanderdickson.com">Alexander Dickson</a>.</p>
<script src="dist/bundle.js"></script>
</body>
</html>