draw¶
-
class
Tree.draw.Drawer(tree, canvas, color=(255, 255, 255), thickness=1)¶ A generic class for drawing tree on acanvas.
-
canvas¶ The canvas for drawing the tree.
-
tree¶ object – The tree, which should drawn on canvas.
-
color¶ tupel – Color or gradient for coloring the tree.
-
thickness¶ int – The start thickness of the tree.
-
draw()¶ Draws the tree.
-