A quick try at L-Systems:

A few weeks ago, i stumbled on the wikipedia page for L-Systems (oh, wikipedia , even for all you faults, how i love thee).

So i decided to do a quick (less than a day)Β  implementation in c# .

This was the result after about another day of improvements:

l-systemtester

Things of Note:

  • I added a few extra things compared to what is found in the wikipedia article:
    • Color changes based on “generation”
    • Thickness changes base on “generation”
  • It is only for basic LSystem: context free, andΒ  not procedural (although, i confess, i did expermiment with more complex version, but those really are to slow for showing)
  • 2d Only
  • Windows only, although i am currently working on a Mono version (but boy am i having problems with GUI)
  • The improvement version also uses multithreading , and the speed increase, even on just an old dual core amd, is quite amazing
  • I will post a download link soonish so you can try it out for yourself
Share and Enjoy:
  • Identi.ca
  • Twitter
  • Facebook
  • Reddit
  • Digg
  • Print
  • Google Bookmarks
  • Add to favorites

Tagged on:         

7 thoughts on “L Systems in c# / mono

  • May 24, 2011 at 23:37
    Permalink

    Would you mind posting the code to this? If you don’t want to publicly post it, would you mind emailing it to me?

    Thanks!

    Jon

    Reply
    • June 17, 2011 at 00:55
      Permalink

      Hello Jon !
      Sorry for the late reply.
      I would not mind at all , however i will have to dig through my old hard drives to get my hands on the code again, so i will post it as soon as i can find it!
      Cheers!

      Reply
  • August 8, 2011 at 15:52
    Permalink

    Hi Mark,

    Been playing around with L-Systems in C# and would realy be interested in your implementation. Any luck finding it on your old HDD?

    Thanks!

    Reply
    • August 20, 2011 at 23:05
      Permalink

      Hello Alex !
      Sorry for the late reply, but as you can see , i did find those files (see latest article), so , even if they are a horrible mess, and ages old, if they can help you , that is good πŸ™‚
      cheers!

      Reply
  • October 3, 2014 at 23:56
    Permalink

    Well I can’t see any code.. πŸ˜‰

    Reply
  • February 16, 2017 at 09:39
    Permalink

    Can you put here your all code? πŸ˜‰

    Reply

Leave a Reply

Your email address will not be published.