ó
    •JÕiy  ã                   óp   • S r SSKJrJr  SSKJr  S rS rS r	\
S:X  a  \	" 5       r\" \5        \" 5         gg)	a‘  turtle-example-suite:

             tdemo_tree.py

Displays a 'breadth-first-tree' - in contrast
to the classical Logo tree drawing programs,
which use a depth-first-algorithm.

Uses:
(1) a tree-generator, where the drawing is
quasi the side-effect, whereas the generator
always yields None.
(2) Turtle-cloning: At each branching point
the current pen is cloned. So in the end
there are 1024 turtles.
é    )ÚTurtleÚmainloop)Úperf_counterc              #   ó.  #   • US:”  a‹  / nU  Hh  nUR                  U5        UR                  5       nUR                  U5        UR                  U5        UR	                  U5        UR	                  U5        Mj     [        XAU-  X#5       H  nSv •  M	     gg7f)z“plist is list of pens
l is length of branch
a is half of the angle between 2 branches
f is factor by which branch is shortened
from level to level.é   N)ÚforwardÚcloneÚleftÚrightÚappendÚtree)ÚplistÚlÚaÚfÚlstÚpÚqÚxs           ÚLib\turtledemo\tree.pyr   r      s€   é € ð 	ˆ1ƒuØˆÛˆAØ�I‰I�aŒLØ—‘“	ˆAØ�F‰F�1ŒIØ�G‰G�AŒJØ�J‰J�qŒMØ�J‰J�qŽMñ ô �c˜Q™3 Ö%ˆAØŒJò &ð ùs   ‚BBc                  óp  • [        5       n U R                  S 5        U R                  5         U R                  S5        U R	                  5       R                  SS5        U R                  S5        U R                  5         U R                  S5        U R                  5         [        U /SSS5      nU H  nM     g )Nr   é   éZ   i.ÿÿÿéÈ   éA   gffffffä?)r   ÚsetundobufferÚ
hideturtleÚspeedÚ	getscreenÚtracerr
   Úpenupr   Úpendownr   )r   Útr   s      r   Úmaketreer$   '   s†   € Ü‹€AØ‡O�O�DÔØ‡L�L„NØ‡G�GˆA„JØ‡K�KƒM×Ñ˜˜AÔØ‡F�Fˆ2„JØ‡G�G„IØ‡I�Iˆd„OØ‡I�I„KÜˆaˆS�#�r˜6Ó"€AÛˆÙò ó    c                  óL   • [        5       n [        5         [        5       nSX-
  -  $ )Nzdone: %.2f sec.)Úclockr$   )r   Úbs     r   Úmainr)   5   s"   € Üƒg€AÜ„JÜƒg€AØ ¡Ñ$Ð$r%   Ú__main__N)Ú__doc__Úturtler   r   Útimer   r'   r   r$   r)   Ú__name__ÚmsgÚprint© r%   r   Ú<module>r2      sC   ðñ÷  $Ý &òò$ò%ð ˆzÓÙ
‹&€CÙ	ˆ#„JÙ…Jð r%   