§
    •Õ*jy  ã                   ó†   — d Z ddlmZmZ ddlmZ d„ Zd„ Zd„ Z	e
dk    r! e	¦   «         Z ee¦  «          e¦   «          dS dS )	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              #   óZ  K  — |dk    r g }| D ]}|                      |¦  «         |                     ¦   «         }|                     |¦  «         |                     |¦  «         |                     |¦  «         |                     |¦  «         Œ€t          |||z  ||¦  «        D ]}dV — ŒdS dS )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           á!  /home/task_178118881339430/croot/python-split_1781190639776/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/python3.11/turtledemo/tree.pyr   r      s¼   è è € ð 	ˆ1‚u€uØˆØð 	ð 	ˆAØ�IŠI�a‰LŒLˆLØ—’‘	”	ˆAØ�FŠF�1‰IŒIˆIØ�GŠG�A‰JŒJˆJØ�JŠJ�q‰MŒMˆMØ�JŠJ�q‰MŒMˆMˆMÝ�c˜1˜Q™3  1Ñ%Ô%ð 	ð 	ˆAØˆJˆJˆJˆJð €uð	ð 	ó    c                  óÂ  — t          ¦   «         } |                      d ¦  «         |                      ¦   «          |                      d¦  «         |                      ¦   «                              dd¦  «         |                      d¦  «         |                      ¦   «          |                      d¦  «         |  	                    ¦   «          t          | gddd¦  «        }|D ]}Œd S )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„N€NØ‡G‚GˆA�J„J€JØ‡K‚K�M„M×Ò˜˜AÑÔÐØ‡F‚Fˆ2�J„J€JØ‡G‚G�I„I€IØ‡I‚Iˆd�O„O€OØ‡I‚I�K„K€KÝˆaˆS�#�r˜6Ñ"Ô"€AØð ð ˆØðð r   c                  óf   — t          ¦   «         } t          ¦   «          t          ¦   «         }d|| z
  z  S )Nzdone: %.2f sec.)Úclockr%   )r   Úbs     r   Úmainr)   5   s,   € Ý�g„g€AÝ�J„J€JÝ�g„g€AØ  !¡Ñ$Ð$r   Ú__main__N)Ú__doc__Úturtler   r   Útimer   r'   r   r%   r)   Ú__name__ÚmsgÚprint© r   r   ú<module>r2      s¤   ððð ð  $Ð #Ð #Ð #Ð #Ð #Ð #Ð #Ø &Ð &Ð &Ð &Ð &Ð &ðð ð ð$ð ð ð%ð %ð %ð ˆzÒÐØ
ˆ$‰&Œ&€CØ	€Eˆ#�J„J€JØ€H�J„J€J€J€Jð Ðr   