ip{ {dZddlmZmZddlmZGddeZdZe dkr!eZ e e edSdS) a turtle-example-suite: tdemo_bytedesign.py An example adapted from the example-suite of PythonCard's turtle graphics. It's based on an article in BYTE magazine Problem Solving with Logo: Using Turtle Graphics to Redraw a Design November 1982, p. 118 - 134 ------------------------------------------- Due to the statement t.delay(0) in line 152, which sets the animation delay to 0, this animation runs in "line per line" mode as fast as possible. )Turtlemainloop) perf_countercDeZdZdZdZdZdZdZdZdZ dZ d Z d S) Designerc|tdD]}|d|z||||||d|z|d||||d|d|z|d|| d|zd|| d dS) Ng)P@H$g8@.ga@T) uprangeforwarddownwheelpositionbackwardrightgoto centerpiece getscreentracer)selfhomePosscaleis )rr&r.rAs rr.zDesigner.tripolyls 1u9  vv T # TD[!!! # TCZ    # dSj%(((((r c|||||d|zkrdS||d|zz ||dS)Ng@g333333?)rr&r)rsars rrzDesigner.centerpiecesZ Q1 e   F cEk*Au55555r N) __name__ __module__ __qualname__rrr'r%r5r4r,r.rr rrrs&&&$"""$"""""""0555 555 ))))))66666r rct}|d||d|dt }||dt }d||z zS)Nrr8zruntime: %.2f sec.) rspeed hideturtlerdelayrclockrr)tatets rmainrRs AGGAJJJLLNNNKKMMKKMM BHHQZZ\\1 B 2b5 ))r __main__N) __doc__turtlerrtimerrNrrRrFmsgprintrIr rrYs.$#######&&&&&&s6s6s6s6s6vs6s6s6j * * * z $&&C E#JJJ HJJJJJr