Playing around with lsystems and drawing the resulting string with the help of an svg-turtle as a curve. See the corresponding blog-post https://maximilianschlund.wordpress.com/2023/01/06/drawing-curves-with-l-systems/
Prerequisites:
- install poetry (cf. https://python-poetry.org/docs/)
-
set up environment
$ poetry install
-
run the draw-curves notebook: Either do
$ cd notebooks
$ jupyter-notebook draw_curves.ipynb
or open the notebook in your favorite ide.
Prerequisites:
- install anaconda (see https://docs.anaconda.com/anaconda/install/silent-mode/)
Then follow these steps:
- setup environment
$ conda env create -f env.yml
$ conda activate lsystems
-
install this package in editable mode
python -m pip install -e .
-
run the draw-curves notebook: Either do
$ cd notebooks
$ jupyter-notebook draw_curves.ipynb
or open the notebook in your favorite ide.
Tests can be executed via:
$ python -m unittest discover -s ./test -p test*.py