-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·67 lines (59 loc) · 2.38 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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript" src="./lib/webgl-obj-loader.min.js"></script>
<script type="text/javascript" src="./lib/quaternion.min.js"></script>
<script type="text/javascript" src="./lib/utils.js"></script>
<script type="text/javascript" src="./lib/util_functions.js"></script>
<script type="text/javascript" src="listeners.js"></script>
<script type="text/javascript" src="rotations.js"></script>
<script type="text/javascript" src="drawing.js"></script>
</head>
<body>
<canvas id="c"></canvas>
<div id="legend">
<h1>Legend:</h1>
<div class="container">
<h3>Moves:</h3>
<h4 class="hint">RIGHT ARROW -> Rotate the selected face clockwise</h4>
<h4 class="hint">LEFT ARROW -> Rotate the selected face counter-clockwise</h4>
<h4>WHILE HOLDING DOWN SHIFT :</h4>
<h4 class="hint">UP ARROW -> Rotate the middle upwards</h4>
<h4 class="hint">DOWN ARROW -> Rotate the middle downwards</h4>
<h4 class="hint">LEFT ARROW -> Rotate the middle left</h4>
<h4 class="hint">RIGHT ARROW -> Rotate the middle right</h4>
</div>
<div class="container">
<h3>Face selection:</h3>
<h4 class="red">R -> FACE WITH RED CENTER CUBE</h4>
<h4 class="green">G -> FACE WITH GREEN CENTER CUBE</h4>
<h4 class="white">W -> FACE WITH WHITE CENTER CUBE</h4>
<h4 class="yellow">Y -> FACE WITH YELLOW CENTER CUBE</h4>
<h4 class="blue">B -> FACE WITH BLUE CENTER CUBE</h4>
<h4 class="orange">O -> FACE WITH ORANGE CENTER CUBE</h4>
<h2>Currently selected face:</h2>
<h3><div id="face"></div></h3>
</div>
</div>
<div id="light">
<p>Direction α:
<div id="slider1">0°
<input id="alfa" type="range" min="0" max="360" step="1" value="220" onchange="onAlfaChange(this.value);"/>360°<br/>
</div>
</p>
<p>Direction β:
<div id="slider2">0°
<input id="beta" type="range" min="0" max="360" step="1" value="100" onchange="onBetaChange(this.value);"/>360°<br/>
</div>
</p>
<p><b>Select:</b></p>
<select id="drop-down" name="" onchange="onDropdownChange(this.value);">
<option value="1" selected>No lights</option>
<option value="2">Directional Lambert</option>
</select>
</div>
</body>
</html>