o
    ǋ|cQ                     @   s\   d Z ddlmZmZmZ ddlmZmZ dd Z	dd Z
edkr,e
 Zee e  d	S 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)perf_countersleepc                 C   s   | g}t d|D ]}|  }|d|  || |} qt |D ](}t|d | |d  }|D ]}|d|  |d| d| || q1q!d S )N   g     v@g       @gffffff?r   )rangeZcloneZrtappendabspencolorfd)pneZszZ
turtlelistiqct r   $  /home/conda/feedstock_root/build_artifacts/python-split_1669104742391/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.10/turtledemo/rosette.pymn_eck   s   
r   c                  C   s   t  } | d t }|d |  |d |d | dd t }t	|dd t }|| }t
d t }tdd	 |  D r\|  D ]}|  qJtdd	 |  D sFt }d
|| |  S )NZblackr   Zred   $      r   c                 s   s    | ]}|  V  qd S )N)Zundobufferentries).0r   r   r   r   	<genexpr>7   s    zmain.<locals>.<genexpr>zruntime: %.3f sec)r   Zbgcolorr   ZspeedZ
hideturtler   ZpensizeZtracerclockr   r   anyZturtlesZundo)sr   ZatetZz1r   r   r   r   main$   s(   




r   __main__N)__doc__Zturtler   r   r   timer   r   r   r   r   __name__msgprintr   r   r   r   <module>   s    
