Skip to content

Ecce Signum

Immanentize the Empathy

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

L-System Basics: Drawing a Line

2011-01-31 John Winkelman

This post is meant to provide some basic instructions and simple starting points for using the Lindenmayer System Explorer. Most of what is written here can also be used in other such tools.

Clicking on an image will open the L-System Explorer pre-loaded with the rules set which created that image.

At its simplest, a Lindenmayer system can be used to generate a line.

Play around with line length, iterations, and the number of “F”s in the Start Condition and the Grammar. You should end up with straight lines of varying lengths

Seems like a lot of work just to draw a straight line. Now add a “+” to the Grammar, changing it to this: F:F+FF

Assuming you have not changed any of the other values, you should have a shape which looks like this:

When going through the rule set, every time a “+” is encountered, the drawing tool changes the angle of the next line by the value in the “Angle” field.

Now add a “-” (minus sign) to the Grammar, changing it to this: F:F+F-F. This should give you a much more complex line which looks like this:

Now change the grammar so that it looks like this: F:F+F-F-F+F. Assuming you haven’t changed any of the other values, you see this pattern:

Adjust the Iterations for this one and you will see how a few simple rules can rapidly generate remarkably complex patterns. Here is the previous rule set with four iterations…

…and with five iterations.

Posted in ProgrammingTagged Flash, Lindenmayer, procedural art

Post navigation

L-system Explorer Update:Bookmarking
L-System Basics: Angles

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

January 2011
S M T W T F S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  
« Sep   Feb »

Twitter Feed

JohnWinkelmanJohn Winkelman@JohnWinkelman·
12 Aug

Currently reading. #michaelmarder #politicalcategories #amreadingphilosophy

Reply on Twitter 1558220498743574529Retweet on Twitter 1558220498743574529Like on Twitter 1558220498743574529Twitter 1558220498743574529
JohnWinkelmanJohn Winkelman@JohnWinkelman·
12 Aug

3 of 5 stars to Maze by J.M. McDermott https://www.goodreads.com/review/show/4913800031

Reply on Twitter 1558112360740659203Retweet on Twitter 1558112360740659203Like on Twitter 1558112360740659203Twitter 1558112360740659203
Retweet on TwitterJohn Winkelman Retweeted
stealthygeekPatrick S. Tomlinson@stealthygeek·
10 Aug

You have to understand, in the Republican mind, there is no hypocrisy in attacking the FBI and DoJ for investigating Trump.

Because they believe the purpose of police and the law is not equal justice, but the preservation of white supremacy and the persecution of black people 1/

Reply on Twitter 1557398264038805506Retweet on Twitter 155739826403880550629Like on Twitter 1557398264038805506132Twitter 1557398264038805506
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