Turtle graphics for HTML5 canvas