metanohi-misc-subsites/subsites/nohix/canvas2dw3d.htm

34 lines
1.1 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Graphics {Canvas 2D with 3D (nothing yet, really)}</title>
<style type='text/css'>
@import url('data/genericstyle.css');
</style>
<script type="text/javascript" src="canvas2dw3d.js"></script>
<script type="text/javascript">
window.onload = function() {
points = [
[-50, -50, -50],
[-50, -50, 50],
[50, -50, -50],
[50, -50, 50]
];
can3d = new Canvas2Dw3D(points, 640, 360);
canwrap = document.getElementById("canvasWrapper");
canwrap.appendCanvas2Dw3DChild(can3d);
}
</script>
</head>
<body>
<div id="canvasWrapper"></div>
<div class="clear"></div>
<div>
<p><a href=".">Back to index</a></p>
</div>
</body>
</html>