Sindbad~EG File Manager
3
\C � @ sX d Z ddlmZmZmZ ddlmZmZ dd� Zdd� Z e
dkrTe � Zee� e� d S )
aF turtle-example-suite:
tdemo_wikipedia3.py
This example is
inspired by the Wikipedia article on turtle
graphics. (See example wikipedia1 for URLs)
First we create (ne-1) (i.e. 35 in this
example) copies of our first turtle p.
Then we let them perform their steps in
parallel.
Followed by a complete undo().
� )�Screen�Turtle�mainloop)�clock�sleepc C s� | g}x6t d|�D ](}| j� }|jd| � |j|� |} qW x`t |�D ]T}t|d | �|d }x6|D ].}|jd| � |jd| d|� |j|� qjW qHW d S )N� g �v@g @gffffff�?r )�rangeZcloneZrt�append�abs�pencolor�fd)�p�neZszZ
turtlelist�i�q�c�t� r �*/usr/lib64/python3.6/turtledemo/rosette.py�mn_eck s
r c C s� t � } | jd� t� }|jd� |j� |jd� |jd� | jdd� t� }t |dd� t� }|| }t
d� t� }x4tdd � | j� D ��r�x| j� D ]}|j
� q�W qxW t� }d
|| | S )NZblackr Zred� �$ � r c S s g | ]}|j � �qS r )Zundobufferentries)�.0r r r r �
<listcomp>7 s zmain.<locals>.<listcomp>zruntime: %.3f sec)r Zbgcolorr ZspeedZ
hideturtler ZpensizeZtracerr r r �anyZturtlesZundo)�sr
ZatZetZz1r r r r �main$ s&