💾 Archived View for botond.online › en › generative › l-systems.gmi captured on 2023-05-24 at 17:53:38. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

-=-=-=-=-=-=-

Lindenmayer Systems

Lindenmayer systems or L-systems are a formal language developed by Aristid Lindenmayer, a Hungarian theoretical biologist, to model various biological phenomena. They can be used to create fractals, recursive and repeating patterns. The Wikipedia article is a very thorough and interesting introduction to them:

L-system (Wikipedia)

The following images and videos have been created using my custom-made L-system renderer I want to release as open source one day, but I never have the time to finish.

H-tree

The H-tree is a classic space filling curve. The one in this picture has 89° angles instead of the traditional 90°, making it more interesting visually.

H-tree at 89°

This video demostrates that just by continuously changing the angle of an H-tree, we can generate many interesting fractal shapes - including the Dragon Curve, one of the most famous fractals.

H-tree transformation (MP4, 26.2 MB)

The following stills from the video show some of these fascinating shapes and their corresponding angles.

H-tree at 14°

H-tree at 45° - the Dragon Curve

H-tree at 112°

H-tree at 120° - what I call the Pine Fractal

H-tree at 145°

H-tree at 165°

A Simple Tree?

By taking two branches and growing two new, slightly shorter branches from them, and repeating this process recursively, we can create the simplest fractal, a fractal tree.

A simple fractal tree - angle: 20°

But if we gradually increase the angle, we can turn this seemingly simple shape into more intricate fractal patterns which include the famous Lévy C Curve and our old friend, the H-tree.

Fractal tree transformation (MP4, 19.58 MB)

Enjoy the variety of these structures:

Fractal tree at 45° - the Lévy C Curve

Fractal tree at 69°

Fractal tree at 90° - the H-tree

Fractal tree at 120°

Fractal tree at 160°

Natural shapes

L-systems can be used to draw structures that closely resemble natural shapes. See for example this "parsley":

Parsley fractal

Growing parsley (MP4, 24.9 MB)

Another interesting one is this "weed":

Weed L-system

And finally, one of my all-time favorites, the Infinite Spiral:

Infinite spiral

Infinite spiral growth (MP4, 2.41 MB)

← Back: Particle Systems

↑ Up: 🎨 Generative Art Gallery