ó
    •JÕi  ã                   óT   • S r SSK7  S rS r\S:X  a  \" \" 5       5        \" 5         gg)a@  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                  ó   • Sq g )NF)Úrunning© ó    ÚLib\turtledemo\round_dance.pyÚstopr	      s   € à�Gr   c                  óÀ  • [        5         [        S5        [        S5        [        S5        Sn SnSnSn[	        S5      n[        S	5       HD  n[        U5        [        5       nX -  nX0-  n[        U* 5        UR                  XcS
SU-
  4S5        MF     [        SU5        [        S5        [        S5        [        5         [        SS5        / n[        S5       HR  n[        S5        [        S5        [        S5        [        5         US-  S:X  d  M9  UR!                  [#        5       5        MT     [%        5         Sq[)        [*        5        [-        5         Sn[&        (       a€  Sn	U H@  n
U
R                  S5        U
R                  S5        U
R                  U	5        U	S:”  a  SOSn	MB     US:  a  [/        S5        [        U5        US-  n[        5         [&        (       a  M€  g)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ˆÜ�!ŒÜ‹?ˆØ	‰ˆØ	‰ˆÜˆcˆTŒ
Ø
�‰˜˜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   