File: //usr/share/inkscape/extensions/pturtle.pyo
�
��Yc @ s) d Z d d l Z d d d � � YZ d S( s�
Copyright (C) 2005 Aaron Spike, aaron@ekips.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
i����Nt pTurtlec B s� e Z d Z d d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z
d
� Z d � Z d � Z
d
� Z d � Z d � Z d � Z d � Z d � Z e Z e Z e Z e Z e Z e Z RS( s A Python path turtlei c C sL | d | d g | _ | j | _ d | _ d | _ t | _ t | _ d S( Ni i i����t ( t _pTurtle__homet
_pTurtle__post _pTurtle__headingt _pTurtle__patht Truet _pTurtle__drawt
_pTurtle__new( t selft home( ( s) /usr/share/inkscape/extensions/pturtle.pyt __init__ s
c C s_ | j | j d t j t j | j � � | | j d t j t j | j � � | f � d S( Ni i ( t setposR t matht cost radiansR t sin( R t mag( ( s) /usr/share/inkscape/extensions/pturtle.pyt forward s -c C s_ | j | j d t j t j | j � � | | j d t j t j | j � � | f � d S( Ni i ( R R R
R R R R ( R R ( ( s) /usr/share/inkscape/extensions/pturtle.pyt backward s -c C s | j | 8_ d S( N( R ( R t deg( ( s) /usr/share/inkscape/extensions/pturtle.pyt right# s c C s | j | 7_ d S( N( R ( R R ( ( s) /usr/share/inkscape/extensions/pturtle.pyt left% s c C s t | _ t | _ d S( N( t FalseR R ( R ( ( s) /usr/share/inkscape/extensions/pturtle.pyt penup'