Skip to main content
4 of 4
retagged
proud haskeller
  • 6.1k
  • 1
  • 23
  • 37

Create a fractal tree

What I would like to see is a fractal tree being drawn where the you can input an integer, and the output will be a fractal tree with the entered amount of branch steps.

Rules:

  • The fractal should be a line fractal tree: line fractal tree
  • the shape of the fractal should also be the same as this picture.
  • Each branch should decrease by 25% in width for each time it splits
  • The final layer of branches should be an 1px wide line
  • Shortest code wins

Tip: this site might be useful.

joeytje50
  • 621
  • 5
  • 14