A Python-based L-system generator that builds and renders fractal-like structures (Hilbert curve, Sierpinski triangle, terdragon, dragon curve) using PySFML2 for graphics. The implementation uses a recursive string-building approach with a generator to avoid memory issues, and a shape renderer that converts strings to (x, y) coordinate tuples. A simple GUI allows changing iteration depth interactively.

1m read timeFrom mattkeeter.com
Post cover image
Table of contents
AboutImagesImplementationDownload

Sort: