L-system or Lindenmayer system is a type of formal grammar.
This is a collection of DOL-system (Deterministic Context-Free L-system) rewriting rules implemented in the M4 language.
Let's have fun with fractals, a kind of recreational mathematics.

# dnf install -y m4 python3-tkinter
$ m4 lsys.m4 tree_colored.ls | turtle_plotter
$ m4 lsys.m4 plant_colored.ls | turtle_plotter
$ m4 lsys.m4 sierpinski.ls | turtle_plotter
$ m4 lsys.m4 koch_snowflake.ls | turtle_plotter
$ m4 lsys.m4 hilbert_curve.ls | turtle_plotter
$ m4 lsys.m4 peano_curve.ls | turtle_plotter
$ m4 lsys.m4 penrose_tiling.ls | turtle_plotter
$ m4 lsys.m4 islands_and_lakes.ls | turtle_plotter
$ m4 lsys.m4 anklets_of_krishna.ls | turtle_plotter
$ m4 lsys.m4 pentagon.ls | turtle_plotter -i
$ m4 lsys.m4 fibonacci_tree.ls | turtle_plotter
$ m4 lsys.m4 fibonacci_tree.ls | turtle_plotter -i
$ turtle_plotter -h
$ m4 lsys.m4 how_it_works.ls
$ m4 lsys.m4 aAA.ls
If you want to become a great fractalist, the following book is mandatory reading: http://algorithmicbotany.org/papers/abop/abop.pdf










