python (3.12.0)
̑e R d Z ddl d Zd Zedk( r e e e yy)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 da y )NF)running J/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/turtledemo/round_dance.pystopr 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
fd H t d| t
d t d t t d
d g }t d D ]O }t d t d t d t |dz d
k( s7|j! t# Q t% dat) t* t- d}t&