Inheritance diagram for pysvg.turtle:
(C) 2008, 2009, 2010 Kerim Mansour For licensing information please refer to license.txt
Bases: object
Class representing a classical turtle object known from logo and other implementations. Note that currently each turtle has exactly ONE style of drawing, so if you intend to draw in multiple styles several instances of turtles are needed. A turtle will only actually draw when the pen is down (default=false). An xml representation usable for pysvg can ge retrieved using the getXML()-method. To add the turtles paths to an svg you have two opions: Either you simply call “addTurtlePathToSVG” or you can create an svg element and append the Elements of the turtle using a loop, e.g: s=svg(...) t=Turtle(...) for element in t.getSVGElements():
s.addElement(element)
Bases: object
Class representing a vector. Used to determine position of the turtle as well as heading. Also used to calculate movement. Vector class is inspired by tips and code from: - http://slowchop.com/2006/07/15/a-fast-python-vector-class/ - http://www.kokkugia.com/wiki/index.php5?title=Python_vector_class - http://xturtle.rg16.at/code/xturtle.py