Skip to content

bitstr0m/spiralator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spiralator

A small python script that generates spiral/whirl images like the following:

Example spiral

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 --help

The 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 7CEE30RJ

Parameterized example spiral

The --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.

About

A small Python script that generates spiral/whirl images.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages