Given the size of the tree, a recursive tree is generated. Each tree is unique because the length of each branch is randomized, as well as the colours of the leaves. The result is a full tree where each branch has either exactly two or exactly zero children. The recursion follows an inorder pattern for generating the trees.
Five different trees procedurally generated
- Python 3.8
- turtle
- For drawing the graphics
To run this project, clone the repository and run the Python file.
python makeTree.py
- The image does not scale to the size of the window
- if the window is too small it must be resized to view the full picture
Licensed under the MIT License.