+
     Bi                         R t ^ RIHtHtHtHt ^ RIHt ^ RIH	t
 R tR tR tRR ltR tR	 tR
 tR tR t]R8X  d   ]! 4        ]! 4        R# R# )zturtledemo/forest.py

Displays a 'forest' of 3 breadth-first trees,
similar to the one in tree.py.
For further details, see tree.py.

This example is a breadth-first rewrite of
a Logo program by Erich Neuwirth.
)Turtle	colormodetracermainloop	randrange)perf_counterc                 *    \        V ) V ^,           4      # )   r   )ns   &(/usr/lib/python3.14/turtledemo/forest.py	symRandomr      s    aR!    c           
          V  UUu. uF0  w  r4V\        V4      ,           VR \        V4      ,          ,          3NK2  	  upp# u uppi )g)\(?)r   )
branchlist	angledistsizedistangle
sizefactors   &&&  r   	randomizer      sM     /9;.8* Ii((y2224.8; ; ;s   6A c                     \        V4       F<  pV P                  \        V4      4       V P                  R V,          V,          4       K>  	  R# )g      ?N)rangeleftr   forward)tdistancepartsr   is   &&&& r   randomfdr      s6    5\	y#$			C(NE)+ r   c           	   #     "   V^ 8  Ed?   . p. p\        \        W4      4       F  w  rV	P                  W,          4       V	P                  ^^^V,          ,
          \	        ^4      ,           ,
          ^^V,          ,
          \	        ^4      ,           ^ 4       V	P                  4        \        WW%4       ^x  V
 Fa  w  rV	P                  V4       VP                  V	P                  4       4       VP                  \        WV4      4       V	P                  V4       Kc  	  K  	  \        WqX,          V^,
          W8WV4       F  pRx  K	  	  R# R# 5i)    N)listzippensizepencolorr   pendownr   r   appendcloner   righttree)tlistsizelevelwidthfactorbranchlistsr   r   lstbrsr   r   r   r   xs   &&&&&&&       r   r)   r)      s     qy!#e"89MAIIt)+JJsR%Z/)B-?@b5j(9R=8 IIKQe0G%/!u

1779%

9ZHEF	 &0 : c
?E!G[+AJ+! s   E	Ec                    \        ^4       V P                  4        V P                  ^ 4       V P                  4        V P	                  ^Z4       V P                  4        V P                  W4       V P                  4        R# )   N)r   resetspeed
hideturtler   penupsetposr%   )r   r1   ys   &&&r   startr:   3   sN    cNGGIGGAJLLNFF2JGGIHHQMIIKr   c                 f    VP                  4        \        V^R4       \        V.^PV R. RO.4      pV# )   皙?i0)-   gGz?)r    ?gQ?r6   r:   r)   r,   penr   s   && r   doit1rF   =   s5    NN	#r4seR&I%JLAHr   c                 f    VP                  4        \        VRR4       \        V.^xV RRR..4      pV# )   r=   iyi~r>   rA   rC   rD   s   && r   doit2rI   C   s9    NN	#tTseS%J'@&ACAHr   c                 f    VP                  4        \        V^R4       \        V.^dV R. RO.4      pV# )   r=   i))r?   gffffff?)r    g
ףp=
?)rB   r@   rC   rD   s   && r   doit3rL   I   s5    NN	#sCseS%'I&JLAHr   c                     \        4       p V P                  4        \        ^K^ 4       \        ^\        ^R7      4      p\	        ^\        ^R7      4      p\        ^\        ^R7      4      p\        4       p ^ pWV3 F  p VP                  4        K  	  V^8X  g   K(   \        ^^
4       \        4       pRYd,
          ,          #    T^,          p KU  ; i)K   )undobuffersizezruntime: %.2f sec.)r   htr   rF   rI   rL   clock__next__)pusr   adonebs          r   mainrY   P   s    ADDF
2aLaq)*Aaq)*Aaq)*AA
QA

 
 19
1RLA13''	s   >CC__main__N)
      )__doc__turtler   r   r   r   randomr   timer   rQ   r   r   r   r)   r:   rF   rI   rL   rY   __name__ r   r   <module>rc      s^    7 6  &;
,
0(, zFJ r   