News for hackers. Stuff that matters.
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.