Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.61 KB

README.md

File metadata and controls

55 lines (37 loc) · 1.61 KB

Processing codes to generate fractal trees.

How to run the code:

Install processing and run the code fractal_tree.pde

Commands:

  • Position of mouse: changes the origin of the tree.
  • a: decreases the angle used to create the branches.
  • z: increases the angle used to create the branches.
  • e: the length of a new branch is the length of the previous branch times a ratio. It decreases this ratio.
  • r: the length of a new branch is the length of the previous branch times a ratio. It increases this ratio.
  • t: decreases the lenght of the first branch.
  • y: increases the lenght of the first branch.
  • u: the branches are created recursively until they are attaining a certain lentgh. It decreases this length.
  • i: the branches are created recursively until they are attaining a certain lentgh. It increases this length.

Gallery of pictures obtained with the code

Obtained with version 1:

IMAGE! IMAGE! IMAGE! IMAGE! IMAGE! IMAGE! IMAGE!

Obtained with version 2:

IMAGE! IMAGE!

Obtained with version 3:

IMAGE!

Obtained with version 4:

IMAGE! IMAGE! IMAGE!

Obtained with version 5:

IMAGE! IMAGE!

Obtained with version 6:

IMAGE! IMAGE!