Skip to content

Ecce Signum

Immanentize the Empathy

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

L-System Basics: The Start Condition

2011-02-10 John Winkelman

In this post I will discuss some of the different patterns created by modifying the start condition in the Lindenmayer System Explorer. Clicking on any of the images will take you to the explorer tool, preloaded with the variables necessary to re-create that image.

So by now you all have seen the basic pattern which is created by the default settings in the explorer:

All well and good, but it feels incomplete; maybe a little lop-sided. Change the start condition to “F+F+F+F”, and you will see this:

How did this happen?!? Look at the angle: 90°. When you click the render button, the start condition and the grammar are run through an algorithm which creates a long string of characters. Every time an “F” is encountered, a line segment is created. Every time a “+” or “-” is encountered, the angle at which the next segment will be drawn is updated by the value in the “angle” field. “+” turns clockwise, “-” turns widdershins. So in this instance, every “+” means the next line will be drawn at a 90° angle to the previous segment. In the first example, having “F” as the starting condition drew, overall, a single quarter of a square pattern. Changing the start condition to “F+F+F+F” means that the initial 90° angle would be repeated 4 times, each at a 90° offset from the previous. 90 x 4 = 360°, which brings the line back to the start position.

This will work with any number which divides evenly into 360. Here is a 5-sided (72°) figure:

Six sides at 60°:

…and so on. As long as the starting condition and angles are correct, you can put almost anything in the grammar and use any number of iterations, and the result will still be a closed shape. Here are a few more:

Posted in ProgrammingTagged Flash, Lindenmayer, procedural art

Post navigation

Lindenmayer Systems: The Rules
Lindenmayer System Basics: 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

February 2011
S M T W T F S
 12345
6789101112
13141516171819
20212223242526
2728  
« Jan   Mar »

Twitter Feed

Retweet on TwitterJohn Winkelman Retweeted
weirdlilguyscats being weird little guys@weirdlilguys·
27 Jun

Hi everyone - taking some time off to mourn the loss of half the country’s rights and status as free citizens in America.

Please do what you can to support groups helping those that will now need to travel for reproductive care, like the @BrigidAlliance
https://brigidalliance.org/donate/

Reply on Twitter 1541407247175229442Retweet on Twitter 1541407247175229442381Like on Twitter 15414072471752294424358Twitter 1541407247175229442
JohnWinkelmanJohn Winkelman@JohnWinkelman·
26 Jun

4 of 5 stars to The Memory Librarian by Janelle Monáe https://www.goodreads.com/review/show?id=4790331558

Reply on Twitter 1541143905177067521Retweet on Twitter 1541143905177067521Like on Twitter 1541143905177067521Twitter 1541143905177067521
Retweet on TwitterJohn Winkelman Retweeted
GennHutchisonGennifer Hutchison@GennHutchison·
20 Jun

Talking to someone about an estranged adult child and their parent, and the person could not understand the child cutting the parent off because "if they die, wouldn't you feel terrible you never made peace?" And it's interesting because... (cont'd)

Reply on Twitter 1539034762790113280Retweet on Twitter 15390347627901132801461Like on Twitter 15390347627901132808064Twitter 1539034762790113280
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