HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/lib64/python3.8/turtledemo/__pycache__/round_dance.cpython-38.pyc
U

e5d�@s8dZddlTdd�Zdd�Zedkr4ee��e�dS)	aF      turtle-example-suite:

         tdemo_round_dance.py

(Needs version 1.1 of the turtle module that
comes with Python 3.1)

Dancing turtles have a compound shape
consisting of a series of triangles of
decreasing size.

Turtles march along a circle while rotating
pairwise in opposite direction, with one
exception. Does that breaking of symmetry
enhance the attractiveness of the example?

Press any key to stop the animation.

Technically: demonstrates use of compound
shapes, transformation of shapes as well as
cloning turtles. The animation is
controlled through update().
�)�*cCsdadS)NF)�running�rr�./usr/lib64/python3.8/turtledemo/round_dance.py�stopsrcCs�t�td�td�td�d}d}d}d}td�}td	�D]D}t|�t�}||9}||9}t|�|�	||d
d|fd�q>t
d|�td�td�t�td
d�g}td�D]:}t
d�td�td�t�|dd
kr�|�t��q�t�datt�t�d}t�r�d}	|D]6}
|
�
d�|
�d�|
�|	�|	d
k�rPdnd}	�q |dk�rztd�t|�|d9}t��qdS)NZgray10FZtriangleg}�R��c�?g���y!"@��Zcompound�
g�?ZblackZmultitriri8����������T�g�G�z�?zDONE!)ZclearscreenZbgcolorZtracer�shapeZShape�rangeZ	shapesizeZ
get_shapepolyZtiltZaddcomponentZregister_shapeZpuZsetpos�fd�lt�update�appendZclone�homerZ
onkeypressrZlisten�right)�fZphi�s�cZsh�i�pZdancersZcsZtaZdancerrrr�mains^







r�__main__N)�__doc__Zturtlerr�__name__�printZmainlooprrrr�<module>s5