Skip to content

Instantly share code, notes, and snippets.

@Bijesse
Created November 13, 2014 19:17
Show Gist options
  • Save Bijesse/81a94f1b67361400de11 to your computer and use it in GitHub Desktop.
Save Bijesse/81a94f1b67361400de11 to your computer and use it in GitHub Desktop.
Tiny Turle Lesson Atul // source http://jsbin.com/yidesoqada
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Tiny Turle Lesson Atul</title>
</head>
<body>
<canvas width="300px" length="300px" style="border:1px solid">
</canvas>
<script src="http://toolness.github.io/tiny-turtle/tiny-turtle.js">
</script>
<script id="jsbin-javascript">
TinyTurtle.apply(window);
function box (length){
forward(length);
right(90);
forward(length);
right(90);
forward(length);
right(90);
forward(length);
right(90);
}
box(40);
left(20);
box(40);
stamp();
</script>
<script id="jsbin-source-javascript" type="text/javascript">TinyTurtle.apply(window);
function box (length){
forward(length);
right(90);
forward(length);
right(90);
forward(length);
right(90);
forward(length);
right(90);
}
box(40);
left(20);
box(40);
stamp();</script></body>
</html>
TinyTurtle.apply(window);
function box (length){
forward(length);
right(90);
forward(length);
right(90);
forward(length);
right(90);
forward(length);
right(90);
}
box(40);
left(20);
box(40);
stamp();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment