A library for drawing space-filling curves like the Hilbert Curve.
Go to file
2015-03-03 21:59:56 +13:00
scurve Make binvis play better with restricted symbol sets. 2012-01-09 14:21:51 +13:00
test Move unit tests to nose. 2013-12-10 15:12:39 +13:00
.coveragerc Move unit tests to nose. 2013-12-10 15:12:39 +13:00
.gitignore Move unit tests to nose. 2013-12-10 15:12:39 +13:00
binvis Move unit tests to nose. 2013-12-10 15:12:39 +13:00
colormap colorswatch -> colormap - a slightly better name. 2010-01-07 16:07:36 +13:00
cube Add option to specify background colour to drawcurve. 2010-07-13 21:11:23 +12:00
drawcurve Add option to specify background colour to drawcurve. 2010-07-13 21:11:23 +12:00
gray Some refinements to the POV-Ray generations. 2010-01-04 01:41:05 +13:00
README.md Note binvis 2015-03-03 21:59:56 +13:00
setup.py Bump version, include binvis in setup.py. 2011-12-22 09:52:41 +13:00
swatch swatch: Create a colour swatch from a traversal of the RGB colour cube. 2010-01-26 17:19:48 +13:00
testpattern Add a factory method for creating curves through the common fromSize interface. 2010-01-07 15:12:12 +13:00

A collection of algorithms and visualisation tools related to space-filling curves.

See binvis.io for my more recent interactive binary visualisation tool

The Curves

The following traversals of all points in a space are supported (some are true space-filling curves, some are not):

  • hilbert: Hilbert curve
  • natural: A natural-order traversal of all points, where each co-ordinate is simply treated as a digit.
  • zigzag: A traversal of all points that zig-zags to ensure that each point differs from the previous point by a unit-offset in only one dimension.
  • zorder: Z-order curve

The Tools

  • binvis: Visualize binaries using space-filling curves.
  • colorswatch: Creates a swatch with a visual breakdown of the colours contained in a specified image.
  • cube: Outputs a POV-Ray definition file for drawing 3-dimensional curves.
  • drawcurve: Generates two dimensional lines-and-vertexes drawings of space-filling curves.
  • gray: Prints a bit representation of the Gray codes of a specified bit width.
  • testpattern: Projects a 3-dimensional traversal of the RGB colour cube onto a specified two-dimensional curve.

More info

Development on Scurve is usually spurred along by posts on my blog. Some of scurve's features are documented and illustrated in the following posts: