✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ beluga.o2switch.net ​🇻​♯➤ 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 185.154.139.77 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.84
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/python34/lib64/python3.4/turtledemo//tree.py
#! /opt/alt/python34/bin/python3.4
"""      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.
"""
from turtle import Turtle, mainloop
from time import clock

def tree(plist, l, a, f):
    """ 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."""
    if l > 3:
        lst = []
        for p in plist:
            p.forward(l)
            q = p.clone()
            p.left(a)
            q.right(a)
            lst.append(p)
            lst.append(q)
        for x in tree(lst, l*f, a, f):
            yield None

def maketree():
    p = Turtle()
    p.setundobuffer(None)
    p.hideturtle()
    p.speed(0)
    p.getscreen().tracer(30,0)
    p.left(90)
    p.penup()
    p.forward(-210)
    p.pendown()
    t = tree([p], 200, 65, 0.6375)
    for x in t:
        pass
    print(len(p.getscreen().turtles()))

def main():
    a=clock()
    maketree()
    b=clock()
    return "done: %.2f sec." % (b-a)

if __name__ == "__main__":
    msg = main()
    print(msg)
    mainloop()


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
25 Jul 2024 8.44 AM
root / linksafe
0755
__pycache__
--
25 Jul 2024 8.41 AM
root / linksafe
0755
__init__.py
0.307 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
__main__.py
13.921 KB
17 Apr 2024 5.10 PM
root / linksafe
0755
bytedesign.py
4.156 KB
17 Apr 2024 5.10 PM
root / linksafe
0755
chaos.py
0.929 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
clock.py
3.138 KB
17 Apr 2024 5.10 PM
root / linksafe
0755
colormixer.py
1.308 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
forest.py
2.893 KB
17 Apr 2024 5.10 PM
root / linksafe
0755
fractalcurves.py
3.388 KB
17 Apr 2024 5.10 PM
root / linksafe
0755
lindenmayer.py
2.389 KB
17 Apr 2024 5.10 PM
root / linksafe
0755
minimal_hanoi.py
2.015 KB
17 Apr 2024 5.10 PM
root / linksafe
0755
nim.py
6.36 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
paint.py
1.272 KB
17 Apr 2024 5.10 PM
root / linksafe
0755
peace.py
1.053 KB
17 Apr 2024 5.10 PM
root / linksafe
0755
penrose.py
3.469 KB
17 Apr 2024 5.10 PM
root / linksafe
0755
planet_and_moon.py
2.793 KB
17 Apr 2024 5.10 PM
root / linksafe
0755
round_dance.py
1.762 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
tree.py
1.403 KB
17 Apr 2024 5.10 PM
root / linksafe
0755
turtle.cfg
0.156 KB
18 Mar 2019 4.51 PM
root / linksafe
0644
two_canvases.py
1.094 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
wikipedia.py
1.315 KB
17 Apr 2024 5.10 PM
root / linksafe
0644
yinyang.py
0.813 KB
17 Apr 2024 5.10 PM
root / linksafe
0755

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF