-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
33 lines (31 loc) · 1.02 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Logotron - Learning Computer Graphics with Turtle !</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="container clearfix" id="container">
<canvas class="turtle" id="t"></canvas>
<canvas class="pen" id="p"></canvas>
<textarea
id="editCommand"
class="command"
placeholder="> ...Enter command then click RUN to draw turtule graphics!
PU - not draw until enter PD command
PD - start draw line
FD num - go forward (num) length
BK num - go back (num) length
RT num - turn right (num) degree
LT num - turn left (num) degree
REPEAT num [ operation list ] - REPEAT operation list by num
FOR [ident start stop step] - FOR loop and access variable with `:ident`
"
></textarea>
<button id="buttonReset" class="button reset">RESET</button>
<button id="buttonRun" class="button run">RUN</button>
</div>
<script src="assets/js/bundle.js"></script>
</body>
</html>