Your IP : 216.73.216.213


Current Path : /opt/alt/python33/lib64/python3.3/turtledemo/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/turtledemo/__pycache__/round_dance.cpython-33.pyc

�
��fc@sOdZddlTdd�Zdd�ZedkrKee��e�ndS(	uF      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().
i(u*cCs
dadS(NF(uFalseurunning(((u;/opt/alt/python33/lib64/python3.3/turtledemo/round_dance.pyustopsustopcCst�td�td�td�d}d}d}d}td�}xftd�D]X}t|�t�}||9}||9}t	|�|j
||d	d|fd
�qVWtd|�td�td�t�t
dd�g}x\td�D]N}td�t	d�td�t�|ddkr�|jt��q�q�Wt�datt�t�d}x�trd}	xM|D]E}
|
jd�|
jd�|
j	|	�|	dkr�dnd}	q�W|dkr�td�t|�|d9}nt�qsWdS(Nugray10utriangleg}�R��c�?g���y!"@iiucompoundi
g�?ublackumultitriii�i�iiiig�G�z�?uDONE!Fi8���i����Ti����i����(uclearscreenubgcolorutraceruFalseushapeuShapeurangeu	shapesizeu
get_shapepolyutiltuaddcomponenturegister_shapeupuusetposufdultuupdateuappenducloneuhomeuTrueurunningu
onkeypressustopulistenuright(ufuphiusucushuiupudancersucsutaudancer((u;/opt/alt/python33/lib64/python3.3/turtledemo/round_dance.pyumains^



	

$







	






umainu__main__N(u__doc__uturtleustopumainu__name__uprintumainloop(((u;/opt/alt/python33/lib64/python3.3/turtledemo/round_dance.pyu<module>s
5