Created
November 13, 2014 19:17
-
-
Save Bijesse/81a94f1b67361400de11 to your computer and use it in GitHub Desktop.
Tiny Turle Lesson Atul // source http://jsbin.com/yidesoqada
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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