Server IP : 162.213.251.212 / Your IP : 18.225.57.152 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/lib64/python2.7/Demo/turtle/ |
Upload File : |
� 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<