Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Curves and L-Systems (apieceofthepi.substack.com)
77 points by todsacerdoti on Nov 9, 2023 | hide | past | favorite | 8 comments


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


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.


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


Here's an interactive Observable notebook with a bunch of examples. Make your own! [1]

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


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.


3d printed developing terdragon curve - a good way for fast mixing of two different substances? Like oxidiser and fuel?


recent relevant topics include https://news.ycombinator.com/item?id=38024418


> rep-tiles

Lol, nice!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: