Free online tools to generate, calculate,
convert, format, encode, and play.
 

Peano Curve Generator

Generate and visualize Peano space-filling curves with adjustable depth, colors, and line width. The curve is rendered in real time on an HTML canvas.


Preview

Controls


About the Peano Curve

The Peano curve was the first known space-filling curve, discovered by the Italian mathematician Giuseppe Peano in 1890. It demonstrated for the first time that a continuous curve can completely fill a two-dimensional area, a result that was counterintuitive and challenged the prevailing understanding of dimension.

Properties
  • Hausdorff dimension: 2 -- the curve fills the entire plane as the recursion depth increases.
  • 3x3 subdivision: At each level of recursion, the space is divided into a 3x3 grid of sub-squares, and the curve traverses all 9 sub-squares.
  • Self-similarity: Each section of the curve at a given depth is a scaled, possibly reflected or rotated copy of the whole curve.
  • Total cells: At depth n, the curve visits 32n = 9n cells (grows very fast).
Historical Significance

Peano's discovery in 1890 predates Hilbert's curve (1891) and was a landmark in mathematical analysis. It showed that the concept of dimension is more subtle than previously thought -- a one-dimensional curve can have a two-dimensional image. This insight influenced the development of topology, measure theory, and fractal geometry.

Applications
  • Spatial indexing: Similar to Hilbert curves, Peano curves can map multidimensional data to one dimension.
  • Signal processing: Used in scan patterns for image encoding.
  • Parallel computing: Space-filling curves help partition data across processors while preserving locality.

Embed This Util

You can embed this util on your own site as a widget. Adding ?embed=1 to the URL loads a compact version with just the tool itself; no header, menu, or documentation. Paste this snippet into your HTML:


    

Copy snippet Adjust the height to taste.



Feedback

Help us improve this page by providing feedback, and include your name/email if you want us to reach back. Thank you in advance.


Share with