Skip to content

Ecce Signum

Immanentize the Empathy

  • Home
  • About Me
  • Published Works and Literary Matters
  • Indexes
  • Laboratory

Lindenmayer System Basics: Branches

2011-03-13 John Winkelman

This is the fifth in a series of blog posts explaining the usage of the Lindenmayer System Explorer. Clicking on an image will take you to the explorer page, pre-configured to draw that image.

So far, we have seen many different patterns created with the L-system explorer – fractals, dragon curves, snowflakes, and so on. They all have one thing in common: they are made up of a single line.

No branching yet

To create branches, enclose the rules for a branch in square brackets, like so:

[F]+[F]+[F]

Instead of yielding a bent line, it creates a pattern like this:

Branches, 1 iteration

Not terribly interesting yet, but it does allow for the creation of more interesting shapes. Remember: Astrid Lindenmayer was a botanist, and he originally created this system to model the structure of living plants. If we nest a few brackets, and play around with the angles, we can get patterns like this:

Something like a shrub

Branch rules can be nested within each other, to the extent that extremely complex patterns can emerge very quickly:

more branching, something like a wreath

And with a little practice, the patterns can become increasingly plant-like:

closer to a plant

An oddly symmetrical tree

So that’s it for branches. In the next post I will show how you can use branching to change the drawing angles, colors, line length and line thickness to create increasingly life-like plants.

More posts on this subject:

Lines
Angles
Rule sets
The Start Condition

Posted in ProgrammingTagged Flash, Lindenmayer, procedural art

Post navigation

L-System Basics: The Start Condition
Lindenmayer System Basics: More on Branches

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Personal website of
John Winkelman

John Winkelman in a diner in San Francisco

Archives

Categories

Posts By Month

March 2011
S M T W T F S
 12345
6789101112
13141516171819
20212223242526
2728293031  
« Feb   May »

Twitter Feed

Retweet on TwitterJohn Winkelman Retweeted
swordsjewTalia Lavin@swordsjew·
17h

republicans: we openly want a tyranny of the white minority and will enact violence to cement it, we've been consolidating power for decades

democrats: we believe that anyone who runs a small business in a disadvantaged neighborhood for 5 years deserves a tax cut on baby formula

Reply on Twitter 1527340504094232576Retweet on Twitter 1527340504094232576861Like on Twitter 15273405040942325764676Twitter 1527340504094232576
Retweet on TwitterJohn Winkelman Retweeted
SenDuckworthTammy Duckworth@SenDuckworth·
9h

Every Senate Republican—the majority of whom don't have uteruses themselves—voted against protecting Roe v. Wade and your right to decide what happens to your own body.

Reply on Twitter 1527469474038808580Retweet on Twitter 1527469474038808580203Like on Twitter 1527469474038808580887Twitter 1527469474038808580
JohnWinkelmanJohn Winkelman@JohnWinkelman·
12h

Marked as to-read: Dream or Nightmare by Stephen Duncombe https://goodreads.com/review/show/4733884194

Reply on Twitter 1527421442752712706Retweet on Twitter 1527421442752712706Like on Twitter 1527421442752712706Twitter 1527421442752712706
Load More...

Links of Note

Reading, Writing
Tor.com
Locus Online
The Believer
File 770
IWSG

Watching, Listening
WYCE Electric Poetry
Writing Excuses Podcast
Our Opinions Are Correct

News, Politics, Economics
Naked Capitalism
Crooked Timber

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

© 2022 Ecce Signum

Proudly powered by WordPress | Theme: x-blog by wpthemespace.com