I'm looking for a code to generate organic 2d trees like thiskind of shapes

Organic tree 01

Organic tree 02

Gerard Ferrandez has an example to generate some tree but not organic like the picture shape https://codepen.io/ge1doot/pen/BGWzgW?editors=0010

Any recomendation will be much appreciated.

Many thanks!


It could be generated as a Lindenmayer System (L-system) with some rules for branch widths (plus some fractal noise) and branch bifurcation. They are parameters you can play with.

You can find lots of resources in the website of the Biological Modeling and Visualization research group in the Department of Computer Science at the University of Calgary. Professor Przemyslaw Prusinkiewicz is the researcher who popularized these systems, and he has made his main book The algorithmic beauty of plants available for free.

  • $\begingroup$ And you can try it for free interactively with the free Houdini appentice version. $\endgroup$
    – haggi krey
    Apr 3 '19 at 12:14
  • $\begingroup$ Can I mix this with voronoi patterns? $\endgroup$
    – s474966
    Apr 3 '19 at 14:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.