ÿØÿàJFIFÿþ ÿÛC       ÿÛC ÿÀÿÄÿÄ"#QrÿÄÿÄ&1!A"2qQaáÿÚ ?Øy,æ/3JæÝ¹È߲؋5êXw²±ÉyˆR”¾I0ó2—PI¾IÌÚiMö¯–þrìN&"KgX:Šíµ•nTJnLK„…@!‰-ý ùúmë;ºgµŒ&ó±hw’¯Õ@”Ü— 9ñ-ë.²1<yà‚¹ïQÐU„ہ?.’¦èûbß±©Ö«Âw*VŒ) `$‰bØÔŸ’ëXÖ-ËTÜíGÚ3ð«g Ÿ§¯—Jx„–’U/ÂÅv_s(Hÿ@TñJÑãõçn­‚!ÈgfbÓc­:él[ðQe 9ÀPLbÃãCµm[5¿ç'ªjglå‡Ûí_§Úõl-;"PkÞÞÁQâ¼_Ñ^¢SŸx?"¸¦ùY騐ÒOÈ q’`~~ÚtËU¹CڒêV  I1Áß_ÿÙ Afc@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