Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.138.143.99
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : round_dance.cpython-310.opt-1.pyc
o

_b�@s<dZddlTdd�Zdd�Zedkree��e�dSdS)	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/local/python-3.10/lib/python3.10/turtledemo/round_dance.py�stopsrcCs�t�td�td�td�d}d}d}d}td�}td	�D]"}t|�t�}||9}||9}t|�|�	||d
d|fd�qt
d|�td�td�t�td
d�g}td�D]}t
d�td�td�t�|dd
krz|�t��q]t�datt�t�d}tr�d}	|D]}
|
�
d�|
�d�|
�|	�|	d
kr�dnd}	q�|dkr�td�t|�|d9}t�ts�dS)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
onkeypressr�listen�right)�fZphi�s�c�sh�i�pZdancers�cs�taZdancerrrr�mainsb


�


�r!�__main__N)�__doc__Zturtlerr!�__name__�printZmainlooprrrr�<module>s5

�
© 2025 GrazzMean