Edit file File name : tdemo_fractalcurves.pyo Content :� Afc @ sm d Z d d l Td d l m Z m Z d e f d � � YZ d � Z e d k ri e � Z e GHe � n d S( s& turtle-example-suite: tdemo_fractalCurves.py This program draws two fractal-curve-designs: (1) A hilbert curve (in a box) (2) A combination of Koch-curves. The CurvesTurtle class and the fractal-curve- methods are taken from the PythonCard example scripts for turtle-graphics. i����( t *( t sleept clockt CurvesTurtlec B s# e Z d � Z d � Z d � Z RS( c C s� | d k r d S| j | d � | j | | d | � | j | � | j | d � | j | | d | � | j | � | j | | d | � | j | d � | j | � | j | | d | � | j | d � d S( Ni iZ i ( t leftt hilbertt forwardt right( t selft sizet levelt parity( ( s7 /usr/lib64/python2.7/Demo/turtle/tdemo_fractalcurves.pyR s c C s� d d l } d | | j | j | � } | j � | j | � | j � | j d d | d | � x8 t | � D]* } | j | | | � | j d | � qu W| j d d | d | � | j � | j | � | j � d S( Ni����i i� iZ ih ( t matht sint pit put fdt pdt rtt ranget fractalt ltt bk( R t nt radt levt dirR t edget i( ( s7 /usr/lib64/python2.7/Demo/turtle/tdemo_fractalcurves.pyt fractalgon/ s c C s� | d k r | j | � d S| j | d | d | � | j d | � | j | d | d | � | j d | � | j | d | d | � | j d | � | j | d | d | � d S( Ni i i<