This repository has been archived by the owner on Jan 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (49 loc) · 1.53 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
<!DOCTYPE html>
<html>
<head>
<title>PA1</title>
<style type="text/css">
body {
background-color: aliceblue;
}
#canvas {
position: fixed;
margin-top: 50px;
}
.mv-1 {
margin-top: 2rem;
margin-bottom: 2rem;
}
.mv-2 {
margin-top: 2rem;
margin-bottom: 2rem;
}
</style>
</head>
<body>
<div align="center">
<div class="mv-1">
<button class="click" onclick="cubeReset();">Reset</button>
</div>
<div class="mv-1">
(φ, rotation on y axis) : <input id="phi" type="number" value="0.0" />
(θ, rotation on x axis) : <input id="theta" type="number" value="0.0" />
<button class="click" onclick="cubeAxonometric();">Axonometric</button>
</div>
<div class="mv-1">
(Degree per second) : <input id="rotation-speed" value="30.0" type="number" />
<button class="click" onclick="cubeAnimateRotateX();">Animate rotate X axis</button>
<button class="click" onclick="cubeAnimateRotateY();">Animate rotate Y axis</button>
<button class="click" onclick="cubeAnimateRotateZ();">Animate rotate Z axis</button>
<button class="click" onclick="cubeStop();">Stop</button>
</div>
<div class="mv-1">
(fx) : <input id="fx" type="number" value="1.0" readonly/>
(fy) : <input id="fy" type="number" value="1.0" readonly/>
(fz) : <input id="fz" type="number" value="0.0" readonly/>
</div>
</div>
<canvas id="canvas" width="400" height="400" style="background-color: pink"></canvas>
<script type="text/javascript" src="script.js"> </script>
</body>
</html>