HEX
Server: Apache
System: Linux sh-pro142.hostgator.com.br 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User: okform09 (1324)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: //lib64/python3.9/turtledemo/__pycache__/rosette.cpython-39.opt-1.pyc
a

�iQ�@sXdZddlmZmZmZddlmZmZdd�Z	dd�Z
edkrTe
�Ze
e�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)�perf_counter�sleepcCs�|g}td|�D](}|��}|�d|�|�|�|}qt|�D]P}t|d|�|d}|D].}|�d|�|�d|d|�|�|�qbqBdS)N�g�v@g@gffffff�?r)�rangeZcloneZrt�append�abs�pencolor�fd)�p�neZszZ
turtlelist�i�q�c�t�r�*/usr/lib64/python3.9/turtledemo/rosette.py�mn_ecks
rcCs�t�}|�d�t�}|�d�|��|�d�|�d�|�dd�t�}t	|dd�t�}||}t
d�t�}tdd	�|��D��r�|��D]}|�
�q�qvt�}d
|||S)NZblackrZred��$�rcss|]}|��VqdS)N)Zundobufferentries)�.0rrrr�	<genexpr>7�zmain.<locals>.<genexpr>zruntime: %.3f sec)rZbgcolorrZspeedZ
hideturtlerZpensizeZtracer�clockrr�anyZturtlesZundo)�sr
Zat�etZz1rrrr�main$s&



r �__main__N)�__doc__Zturtlerrr�timerrrrr �__name__�msg�printrrrr�<module>s