
   6)LP                   R    d Z ddl d Zd Zedk(  r e e               e        yy)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 y )NF)running     4/tmp/python/lib/python3.12/turtledemo/round_dance.pystopr	      s    Gr   c                     t                t        d       t        d       t        d       d} d}d}d}t	        d      }t        d	      D ]F  }t        |       t               }|| z  }|| z  }t        |        |j                  ||d
d|z
  fd       H t        d|       t        d       t        d       t                t        dd       g }t        d      D ]O  }t        d       t        d       t        d       t                |dz  dk(  s7|j!                  t#                      Q t%                dat)        t*               t-                d}t&        rvd}	|D ]>  }
|
j                  d       |
j                  d       |
j                  |	       |	dkD  rdnd}	@ |dk  rt/        d       t        |       |dz  }t                t&        rvy)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   MH
5M	*
A
C	A	A	z	B2Y!?	Q	QcT

AtQqS>73  :r"aL	*D
1dOG3Z
1R
1r6Q;NN57#  	FGt
H	
B
FIIaLIIaLKKOAv1B	 
 8!HbM%KB  r   __main__N)__doc__turtler	   r:   __name__printmainloopr   r   r   <module>rA      s7   0 3j Z	$&MJ r   