/ncpm

non crossing perfect matching utilized for randomly-generated tesselations

Primary LanguagePythonMIT LicenseMIT

ncpm

non crossing perfect matching utilized for randomly-generated tesselations

https://en.wikipedia.org/wiki/Catalan_number

installation

I like using a venv named env, but use whatever you want!

python3 -m venv env
source env/bin/activate
python3 -m pip install -e .

usage

$ python3 -m ncpm.draw --help
# start here
$ python3 -m ncpm.draw 2 3 --grid --color rainbow3 --curve formulaic --grid-size 12
# your generated image will open after processing

gallery

image

image

image

image

image