-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
32 lines (29 loc) · 820 Bytes
/
index.html
File metadata and controls
32 lines (29 loc) · 820 Bytes
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
<html>
<head>
<title>3D WebGL turtle</title>
<meta charset="UTF-8"/>
<script src="jquery-1.8.0.js"></script>
<script src="CodeMirror-2.32/lib/codemirror.js"></script>
<link rel="stylesheet" href="CodeMirror-2.32/lib/codemirror.css">
<script src="CodeMirror-2.32/mode/javascript/javascript.js"></script>
<script src="three.min.js"></script>
<script src="js/turtle3d.js"></script>
<script src="js/3d-playground.js"></script>
</head>
<body>
<textarea id="codeMirrorArea">color(green);
width(10);
for (var i = 0; i < 50; i++)
{
go(20);
up(20);
rollRight(10);
}
// try also:
// left(30)
// penUp() / penDown()</textarea>
<input id="runButton" type="button" value="Run!"/>
<div id="numObjects"></div>
<canvas id="turtle3dCanvas"></canvas>
</body>
</html>