PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB`  6fc@sdZddlZddlmZmZddlmZdefdYZdZe dkr{eZ e GHendS( s turtle-example-suite: tdemo_bytedesign.py An example adapted from the example-suite of PythonCard's turtle graphcis. 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. iN(tTurtletmainloop(tclocktDesignercBsYeZdZdZdZdZdZdZdZdZ dZ RS( cCs|jxmtdD]_}|jd||j|j|j||j|jd||jdqW|j|j||jd|jd||jd|j|j d|d||j t dS( Nig)P@iHi$g8@ii.ga@( tuptrangetforwardtdowntwheeltpositiontbackwardtrighttgotot centerpiecettracertTrue(tselfthomePostscaleti((s4/usr/lib64/python2.7/Demo/turtle/tdemo_bytedesign.pytdesign!s         cCs|jdx$tdD]}|j||qW|j|jdx$tdD]}|j||qXW|jdxWtdD]I}|j|jd|jd||j|jd|qW|jd|j j dS(Ni6ii$iiHi( R Rt pentpieceRtleftttripieceRRR t getscreentupdate(RtinitposRR((s4/usr/lib64/python2.7/Demo/turtle/tdemo_bytedesign.pyR3s         cCs|j}|j|jd||jd|||j|j||j||j|jd||jd|||j|j||j||jd|j j dS(Ng@g?@iH( theadingRR ttripolyrRR t setheadingttripolylRRR(RRRtoldh((s4/usr/lib64/python2.7/Demo/turtle/tdemo_bytedesign.pyREs          cCsM|j}|j|jd||jx2tdD]$}|jd||jdq>W|jd|d||j|j||j||jd||jx2tdD]$}|jd||jdqW|j d|d||j|j||j||j d|j j dS(NiiiiHiK( RRRRRR tpentrR RtpentlRRR(RRRRR((s4/usr/lib64/python2.7/Demo/turtle/tdemo_bytedesign.pyRVs,           cCsM|d|krdS|j||j||j|d|||dS(NigRQ?(RRR!(RtsidetangR((s4/usr/lib64/python2.7/Demo/turtle/tdemo_bytedesign.pyR!ns   cCsM|d|krdS|j||j||j|d|||dS(NigRQ?(RR R (RR"R#R((s4/usr/lib64/python2.7/Demo/turtle/tdemo_bytedesign.pyR ts   cCs|d|krdS|j||jd|j|d|jd|j|d|jd|j|d|dS(Niiog{Gz?g?ig?(RR R(RR"R((s4/usr/lib64/python2.7/Demo/turtle/tdemo_bytedesign.pyRzs    cCs|d|krdS|j||jd|j|d|jd|j|d|jd|j|d|dS(Niiog{Gz?g?ig?(RRR(RR"R((s4/usr/lib64/python2.7/Demo/turtle/tdemo_bytedesign.pyRs    cCsM|j||j||d|kr.dS|j|d|||dS(Ng@g333333?(RRR (RtstaR((s4/usr/lib64/python2.7/Demo/turtle/tdemo_bytedesign.pyR s  ( t__name__t __module__RRRRR!R RRR (((s4/usr/lib64/python2.7/Demo/turtle/tdemo_bytedesign.pyRs       cCstt}|jd|j|jjd|jdt}|j|jdt}d||S(Niisruntime: %.2f sec.( Rtspeedt hideturtleRtdelayRRRR (tttattet((s4/usr/lib64/python2.7/Demo/turtle/tdemo_bytedesign.pytmains      t__main__( t__doc__tmathtturtleRRttimeRRR.R&tmsg(((s4/usr/lib64/python2.7/Demo/turtle/tdemo_bytedesign.pyts u