The purpose of this project is to create visually apealing trees in Java using Trees data structures.
It is easy modify many properties of the trees. Here is a list of the things you can change in this code.
- Number of trees.
Just add more Tree objectsTree tree = new Tree(15);to main.
public static void main(String[] args) {
Tree tree = new Tree(limit);
}-
Size of trees
usetree.setSize(size);to change the size of the tree. -
Positions
-
Angle position of trees
usetree.setTreeAngle(angle);to set the angle of the tree. Angle is measured in counter-clockwise degrees, where 0 is the right-most of the screen and 180 is the left-most of the screen. -
Angle separation
usetree.setSeparationAngle(Angle);to set the angle seperation between branches. This angle will dictate how far appart should each branch be from its sibling branch. You can get funny/interesiting looking trees if you play with this property. -
Delay between paintings
After you are done editing your tree, just call tree.draw(); to draw it!
