Skip to content

Small project to recursively calculate and plot each successive order of the Hilbert Curve

License

Notifications You must be signed in to change notification settings

connesy/hilbert-curve

Repository files navigation

hilbert-curve

Small project to recursively calculate and plot each successive order of the Hilbert Curve.

After watching 3Blue1Brown's video on Hilbert's Curve again recently, I decided to code it up myself. Especially the recursive nature of the definition of each order of the curve seemed like a fun challenge.

How to run:

Requirements: pip install -r requirements.txt

Simply run python HilbertCurve.py from a terminal. The script will plot the lowest order Hilbert Curve and wait for any user input in the terminal. On each user input, each successive order is plotted.

You can specify the maximum order that is plotted by running the script with the --max-order=<order> flag. Default value for max order is 8.

Example plot

image

About

Small project to recursively calculate and plot each successive order of the Hilbert Curve

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages