-
Notifications
You must be signed in to change notification settings - Fork 0
/
bezier.html
75 lines (66 loc) · 2.55 KB
/
bezier.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
<!DOCTYPE html>
<title>Bezier</title>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap-responsive.css">
<link rel="stylesheet" type="text/css" href="Bezier/bezier.css">
</head>
<body>
<div class="container-fluid">
<div class="row-fluid">
<div class="span3">
<div class="sidebar-nav">
<ul class="nav nav-list">
<div id="instruction">
<p>
<strong>Left click</strong> on the canvas to add a control point.
<!-- <strong>Right click</strong> on the canvas to remove a control point.
--> <strong>Drag</strong> a control point to change curve shape.
</P>
</div>
<li class="nav-header">Select Curve Type</li>
<div id="curveType">
<div class="radio">
<label>
<input type="radio" name="optionsRadios" id="type0" value="0">
Straight line
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="optionsRadios" id="type1" value="1" checked>
Bezier
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="optionsRadios" id="type2" value="2">
Spline
</label>
</div>
</div>
<li class="nav-header">Select curve smoothness</li>
<div id="sliderWrapper">
<span id="levelOfDetail"></span>
<div id="slider">
</div>
</div>
</ul>
</div><!--/.well -->
</div><!--/span-->
<div class="span9" id="main">
<div class="row">
<h1>Bezier!</h1>
<canvas id="canvas"></canvas>
</div>
</div>
</div>
</div>
<body>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<script src="Bezier/point.js"></script>
<script src="Bezier/curves.js"></script>
<script src="Bezier/script.js"></script>