Massively untrimmed code for constructing and viewing Lindenmayer systems (L-systems). You construct the L-system in an interface (made with iced
) and press a button to render the structure. In the interface you can tweak parameters (the rules, axiom, angle, num of iterations). There are also templates to choose from (including the Hilbert curve, Koch curve, the Sierpinski triangle).
Heavily inspired by the L-system renderer. Hinges solely (modulo the file plotting.rs
for plotting the structures with plotters
) on iced and the examples in that repo.
- Prettify the interface
- Trim the code
- Add comments
- Add button for exporting plot