Ë
    #´˜j  ã                   ó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© ó    ú(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}—R—Œcé?g˜Š�y!"@é   é   Úcompoundé
   g      Ð?ÚblackÚmultitrir   i8ÿÿÿé´   é   éüÿÿÿé   é   Té   g®Gázð?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ÔÜ
ˆ5„MÜ	ˆ*ÔØ
€AØ
€CØ	€AØ	€Aä	ˆzÓ	€BÜ�2ŽYˆÜ�!ŒÜ‹?ˆØ	ˆQ‰ˆØ	ˆQ‰ˆÜˆcˆTŒ
Ø
�‰˜˜A˜t Q q¡S˜>¨7Õ3ð ô �:˜rÔ"äˆa„LÜ	ˆ*ÔÜ„DÜ
ˆ1ˆd„OØ€GÜ�3ŽZˆÜ
ˆ1ŒÜˆRŒÜ
ˆ1ŒÜŒØˆr‰6�Q‹;Ø�N‰Nœ5›7Õ#ð ô 	„Fà€GÜŒtÔÜ
„HØ	
€BÝ
ØˆÛˆFØ�I‰I�aŒLØ�I‰I�aŒLØ�K‰K˜ŒOØ˜A’v‘ 1‰Bð	 ð
 �Š8Ü�!ŒHÜ�bŒMØ�%‰KˆBÜŒö ð r   Ú__main__N)Ú__doc__Úturtler	   r:   Ú__name__ÚprintÚmainloopr   r   r   Ú<module>rA      s7   ðñô0 òò3ðj ˆZÒÙ	‰$‹&„MÙ…Jð r   