4230-hw-1/RotatingCube/RotatingCube.html

25 lines
662 B
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="en">
2022-07-12 19:11:19 +00:00
<head>
<meta charset="utf-8" />
<title>Draw cube with specification of face color</title>
</head>
<body onload="main()">
<canvas id="webgl" width="400" height="400">
Please use a browser that supports "canvas"
2022-07-12 19:11:19 +00:00
</canvas>
<p>
<button type="button" onclick="rotate('x')">Rotate X</button>
<button type="button" onclick="rotate('y')">Rotate Y</button>
</p>
<script src="../lib/webgl-utils.js"></script>
<script src="../lib/webgl-debug.js"></script>
<script src="../lib/cuon-utils.js"></script>
<script src="../lib/cuon-matrix.js"></script>
<script src="RotatingCube.js"></script>
</body>
2022-07-12 19:11:19 +00:00
</html>