U e5d ã@s8dZddlTdd„Zdd„Zedkr4eeƒƒeƒdS) 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(). é)Ú*cCsdadS)NF)Úrunning©rrú./usr/lib64/python3.8/turtledemo/round_dance.pyÚstopsrc Csˆtƒtdƒtdƒtdƒd}d}d}d}tdƒ}td ƒD]D}t|ƒtƒ}||9}||9}t| ƒ|  ||d d|fd ¡q>t d |ƒtdƒtd ƒt ƒt d dƒg}tdƒD]:}t dƒtdƒtdƒtƒ|dd krº| tƒ¡qºtƒdattƒtƒd}t�r„d} |D]6} |   d¡|  d¡|  | ¡| d k�rPdnd} �q |dk�rztdƒt|ƒ|d9}tƒ�qdS)NZgray10FZtriangleg}—R—Œcé?g˜Š�y!"@ééZcompoundé gÐ?ZblackZmultitriri8ÿÿÿé´ééüÿÿÿéé Tég®Gázð?zDONE!)Z clearscreenZbgcolorZtracerÚshapeZShapeÚrangeZ shapesizeZ get_shapepolyZtiltZ addcomponentZregister_shapeZpuZsetposÚfdÚltÚupdateÚappendZcloneÚhomerZ onkeypressrZlistenÚright) ÚfZphiÚsÚcZshÚiÚpZdancersZcsZtaZdancerrrrÚmains^           rÚ__main__N)Ú__doc__ZturtlerrÚ__name__ÚprintZmainlooprrrrÚs 5