def system():
"""initialize and iterate the system as appropriate"""
l_sys = LSystem(axiom=[LSymbol("!", {"w": 0.2}),
LSymbol("/", {"a": random() * 360}),
LSymbol("Q", {"t": 0})],
rules={"Q": q_prod, "A": a_prod},
tropism=Vector([0, 0, -1]),
thickness=0.2,
bendiness=0,
leaf_shape=10,
leaf_scale=1,
leaf_scale_x=0.1,
leaf_bend=0)
l_sys.iterate_n(100)
return l_sys
评论列表
文章目录