A small python script that generates spiral/whirl images like the following:
To run, you can either use Poetry (recommended), or just execute ./spiralator/main.py ensuring the dependencies are installed. For the Poetry method, use poetry install to setup the virtual environment followed by:
poetry run spiralator --helpThe help will show the full list of options available. There are a fair few parameters to adjust. Here is an example command and output:
poetry run spiralator --anticlockwise --num 100 --segment-start-width 0.02 --segment-end-width 0.08 --theme ocean --image-radius 2 --seed 7CEE30RJThe --color option understands any color code that matplotlib does.
It can be specified multiple times to keep adding more color options to select from.
If --theme is used, --color would add a color to the theme.
If you want to weight colors in the random selection, see the Themes class and the Theme class in spiralator/main.py for examples of using weights.