4 ms·
Lindenmayer's work is absolutely wonderful. Although L-systems are ruthlessly simple, sometimes they are a little unintuitive, because the rewrite rules are in
by kragen 5y ago
Lindenmayer's work is absolutely wonderful.
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#!rrrrrrrrffffffffffffrrrr@7r[xfrrfrrrrrrrrrrfrrrrffrrrrfff@.5rrrrff[yrrrrfrrrrrrrrrrfrrfrrrrrrrrffrrrrrrrrfff@.5rrrrrrrrffrrrrrrrrxrrffrrffrrrrrrrrfffrrrryrrrrrrrrfrrrrrrx]rrffrrrrrrrrrrffrrrrfffrrrrxrrrrrrrrfrryrrfffrrrrrrrrrry 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/ https://contextfreeart.org/ as well.
- doersino 5y agoWow, that's a fun tool! Very enjoyable to play with. Thank you for making it.
- kragen 5y agoYou're very welcome!
- penteract 5y agoHere's a Heighway dragon (it follows the same idea as your Koch snowflake). It could be shorter if 45 degree turns were possible. 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_rrr_@0.5a@2f_rrr_@0.5[b_@0.5a@2f_rrr_@0.5b@2f_rrr_rrr_rrr_@0.5a@2f_rrr_rrr_rrr_@0.5b@2f_rrr]@2f_rrr_@0.5a@2f_rrr_rrr_rrr_@0.5b@2f 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]
- kragen 5y agoWow, that's wonderful! The Lévy dragon, like the Koch snowflake, shows one of the weaknesses of the system; I was thinking of adding G to go forward without leaving a trace and /3 to divide the turn angle by 3 (for any value of 3, including negative values).