PK
œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Notice: ob_end_clean(): Failed to delete buffer. No buffer to delete in /home/telusvwg/public_html/da754d/index.php on line 8
| Dir : /lib64/python3.8/turtledemo/__pycache__/ |
| Server: Linux premium279.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 IP: 66.29.132.192 |
| Dir : //lib64/python3.8/turtledemo/__pycache__/tree.cpython-38.opt-1.pyc |
U
e5dx � @ sX d Z ddlmZmZ ddlmZ dd� Zdd� Zdd � Z e
d
krTe � Zee� e� dS )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 c sr |dkrng }| D ]>}|� |� |�� }|�|� |�|� |�|� |�|� qt||| ||�D ]
}dV qbdS )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)�forwardZclone�left�right�append�tree)Zplist�l�a�fZlst�p�q�x� r �'/usr/lib64/python3.8/turtledemo/tree.pyr
s
r
c C st t � } | �d � | �� | �d� | �� �dd� | �d� | �� | �d� | � � t
| gddd�}|D ]}qjd S )Nr � �Z i.����� �A gffffff�?)r Z
setundobufferZ
hideturtleZspeedZ getscreenZtracerr Zpenupr Zpendownr
)r �tr r r r �maketree'