Server IP : 162.0.232.140 / Your IP : 18.188.224.69 Web Server : LiteSpeed System : Linux premium139.web-hosting.com 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64 User : micrcvoy ( 740) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/thread-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<