
    d                     h    d Z ddlT d Zd Zedk    r e e                        e             dS dS )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().
    )*c                  
    da d S )NF)running     (  /croot/python-split_1694437901252/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_plac/lib/python3.11/turtledemo/round_dance.pystopr	      s    GGGr   c                     t                       t          d           t          d           t          d           d} d}d}d}t	          d          }t          d	          D ]V}t          |           t                      }|| z  }|| z  }t          |            |	                    ||d
d|z
  fd           Wt          d|           t          d           t          d           t                       t          dd           g }t          d          D ]g}t          d           t          d           t          d           t                       |dz  dk    r!|                    t#                                 ht%                       dat)          t*                     t-                       d}t&          rd}	|D ]K}
|
                    d           |
                    d           |
                    |	           |	dk    rdnd}	L|dk     r#t/          d           t          |           |dz  }t                       t&          dS )Ngray10Ftriangleg}Rc?gy!"@      compound
   g      ?blackmultitrir   i8            T   gGz?zDONE!)clearscreenbgcolortracershapeShaperange	shapesizeget_shapepolytiltaddcomponentregister_shapepusetposfdltupdateappendclonehomer   
onkeypressr	   listenright)fphiscshipdancerscstadancers              r   mainr:      s-   MMMH
5MMM	*
A
C	A	A	z		B2YY 4 4!??	Q	QcT



AtQqS>73333:r"""aLLL	*DDD
1dOOOG3ZZ $ $
1R
1r6Q;;NN577###FFFGt
HHH	
B
  	% 	%FIIaLLLIIaLLLKKOOOAvv1BB88!HHHbMMM%KB   7r   __main__N)__doc__turtler	   r:   __name__printmainloopr   r   r   <module>rA      ss    0      3 3 3j Z	E$$&&MMMHJJJJJ r   