by kragen · 5y ago · 0 comments
Although L-systems are ruthlessly simple, sometimes they are a little unintuitive, because the rewrite rules are in string space, not physical space. A couple of months ago I wrote http://canonical.org/~kragen/sw/dev3/skitch#!rrrrrrrrfffffff...] which I think might be a promising alternative that's maybe easier to understand, although it's less powerful. I haven't figured out how to get a dragon curve out of it yet, but I think it's possible.
If you like L-systems you will almost certainly like https://contextfreeart.org/ as well.
rrr@4[a rrr rrr rrr [c@0.5a]f rrr [d@0.5[b cf rrr df rrr rrr rrr cf rrr rrr rrr df rrr]]f rrr cf rrr rrr rrr df]
http://canonical.org/~kragen/sw/dev3/skitch#!rrr@4[a_rrr_rrr...]and a Lévy dragon rrrrrrrrr@3.5[a rrr rrr rrr [b@0.5a]f rrr bf bf rrr bf]