Skip to content

Instantly share code, notes, and snippets.

@alexpelan
Created March 21, 2017 03:41
Show Gist options
  • Select an option

  • Save alexpelan/0280c241f858c0c5e56ad42018613962 to your computer and use it in GitHub Desktop.

Select an option

Save alexpelan/0280c241f858c0c5e56ad42018613962 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=0280c241f858c0c5e56ad42018613962
<!DOCTYPE html>
<html>
<head>
<title>Tiny Turtle</title>
<script src="https://toolness.github.io/tiny-turtle/tiny-turtle.js"></script>
</head>
<body>
Enter a direction: <input class="direction"> <button class="move">Move!</button><p></p>
<p></p><canvas></canvas>
<p class="message"></p>
</body>
</html>
{"enabledLibraries":["jquery"]}
// Tiny Turtle Setup. Avoid modifying these lines of code!
var adjCanvasSize = document.getElementsByTagName('canvas')[0];
adjCanvasSize.width = 400;
adjCanvasSize.height = 400;
TinyTurtle.apply(window);
// Start your code here!
canvas {
border: 1px solid black;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment