Your IP : 216.73.216.85


Current Path : /opt/alt/python310/lib64/python3.10/turtledemo/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/turtledemo/__pycache__/rosette.cpython-310.pyc

o

0�iQ�@s\dZddlmZmZmZddlmZmZdd�Z	dd�Z
edkr,e
�Ze
e�e�d	Sd	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](}t|d|�|d}|D]}|�d|�|�d|d|�|�|�q1q!dS)N�g�v@g@gffffff�?r)�rangeZcloneZrt�append�abs�pencolor�fd)�p�neZszZ
turtlelist�i�q�c�t�r�9/opt/alt/python310/lib64/python3.10/turtledemo/rosette.py�mn_ecks
��rcCs�t�}|�d�t�}|�d�|��|�d�|�d�|�dd�t�}t	|dd�t�}||}t
d�t�}tdd	�|��D��r\|��D]}|�
�qJtdd	�|��D��sFt�}d
|||S)NZblackrZred��$�rcss�|]}|��VqdS)N)Zundobufferentries)�.0rrrr�	<genexpr>7s�zmain.<locals>.<genexpr>zruntime: %.3f sec)rZbgcolorrZspeedZ
hideturtlerZpensizeZtracer�clockrr�anyZturtlesZundo)�sr
ZatZetZz1rrrr�main$s(



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