News for hackers. Stuff that matters.
Re:Curves and L-Systems by Epholys on Thursday November 09, 2023 @04:34AM (#38202881)
I love L-Systems! Really simple concept and implementation, but a huge variety of results and extensions.

In parallel of my studies, I created some years ago on the side an interactive app for generating and coloring L-Systems : https://epholys.itch.io/lsys . It's a bit rough, but I created a lot of interesting trees (all here : https://imgur.com/a/0Rx7uln) and included them as a zip file alongside the app.

Re:Curves and L-Systems by kragen on Thursday November 09, 2023 @04:48AM (#38202975)
recent relevant topics include https://news.ycombinator.com/item?id=38024418
Re:Curves and L-Systems by yetihehe on Thursday November 09, 2023 @05:05AM (#38203091)
3d printed developing terdragon curve - a good way for fast mixing of two different substances? Like oxidiser and fuel?
Re:Curves and L-Systems by bradrn on Thursday November 09, 2023 @05:19AM (#38203198)
The (really amazing) 3D sculpture in this post appears to come from this paper, which also shows several others: https://naml.us/paper/irving_segerman2012_fractal.pdf
Re:Curves and L-Systems by kitd on Thursday November 09, 2023 @06:08AM (#38203537)
> rep-tiles

Lol, nice!

Re:Curves and L-Systems by bazzargh on Thursday November 09, 2023 @07:32AM (#38204174)
Since there's some monotiles on the front page too, my contribution:

https://trinket.io/python/108e28ab75

This has L-systems for filling the plane with hats and spectres. It's a little ugly and slow because it keeps redrawing tile edges but it does the trick; it's compact enough that I managed to get the bbc micro bot to draw the spectres with a toot's worth of code

https://hachyderm.io/@[email protected]/11046800551...

And this one draws the self-avoiding curve made by the F-clusters in the hat monotiling. It works slightly differently using a stack, which avoids some of the overdrawing in the systems above.

https://trinket.io/python/df6f9fa4db

Re:Curves and L-Systems by phailhaus on Thursday November 09, 2023 @09:49AM (#38205684)
Here's an interactive Observable notebook with a bunch of examples. Make your own! [1]

[1] https://observablehq.com/@kelleyvanevert/l-systems-2

Re:Curves and L-Systems by planede on Friday November 10, 2023 @09:05AM (#38218960)
There is this variation of the dragon curve:

  order: 10
  axiom: FX
  angle: 90
  
  X -> X+FYF-
  Y -> +FXF-Y
This avoids the self-intersections (like a similar depiction of the Hilbert and Gosper curves), yet it remains relatively simple, and reveals more of the structure inside the bulk of the curve.

It's especially pretty when completed into a twin-dragon with the axiom: FX+F+FX+F+ and same rules as above.