| Crates.io | scurve |
| lib.rs | scurve |
| version | 0.1.4 |
| created_at | 2021-10-19 20:32:21.881764+00 |
| updated_at | 2025-11-29 01:11:56.126482+00 |
| description | CLI tool for visualizing space-filling curves |
| homepage | https://github.com/cortesi/spacecurve |
| repository | https://github.com/cortesi/spacecurve |
| max_upload_size | |
| id | 467522 |
| size | 198,995 |
generated with: 'scurve allrgb hilbert'
A space-filling curve is a continuous surjection $f:[0,1]\to[0,1]^d$ for $d\ge 2$. In discrete spaces, this is an ordering of grid cells that visits every cell; some orderings preserve adjacency (e.g., Hilbert), while others trade adjacency for simplicity (e.g., Morton/Z-order).
This project contains implementations of various space-filling curves, plus tools for visualising and working with them.
A Rust library for generating and working with space-filling curves.
A command-line tool and GUI for generating images of space-filling curves.
A GUI for visualising space-filling curves and their properties, written in Rust with egui and compiled to WebAssembly.
Development on spacecurve (and its ancestors) is usually spurred along by posts on my blog. Some of spacecurve's features are documented and illustrated in the following posts:
Want to contribute? Have ideas or feature requests? Come tell me about it on Discord.