Skip to content

Welcome to jQuery turtle

davidbau edited this page May 1, 2013 · 9 revisions

When combined with jQuery and CoffeeScript, jQuery-turtle provides a reimagining of LOGO for the Intrnet era.

Here is an complete file that uses jquery turtle:

<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="//raw.github.com/davidbau/jquery-turtle/master/jquery-turtle.js"></script>
<script src="//raw.github.com/jashkenas/coffee-script/master/extras/coffee-script.js"></script>
<script type="text/coffeescript">
$.turtle()

pen 'red'
for x in [1..4]
  lt 90
  fd 50

</script>
</body>
</html>

Clone this wiki locally