logotron
Version:
Have fun to learn LOGO programming with electron!
34 lines (31 loc) • 1.04 kB
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>