Home Categories Math Peano Curve Generator

Peano Curve Generator

Generate beautiful Peano space-filling curves with customizable iterations, colors, and styles. Explore fractal geometry and mathematical art.

⚙️ Settings

1 (Simple) 5 (Complex)

📐 Preview

Generating curve...

Iterations
Grid Cells
Points
Line Segments

💡 How to Use This Tool

Generate beautiful Peano space-filling curves in seconds. Follow these simple steps:

1

Adjust Iterations

Choose complexity level from 1 (simple) to 5 (complex).

2

Customize Appearance

Set line color, width, and background color.

3

Preview Result

Watch the curve generate in real-time on the canvas.

4

Download Image

Save your curve as a PNG image file.


📖 About Peano Curve Generator

What is a Peano Curve?

A Peano curve is a space-filling curve, which means it's a continuous curve that passes through every point in a square. It was discovered by Giuseppe Peano in 1890, making it the first known space-filling curve in mathematics.

How Peano Curves Work

The Peano curve is constructed recursively. At each iteration:

  1. The square is divided into a 3×3 grid (9 smaller squares)
  2. Each small square is visited in a specific pattern
  3. The pattern alternates between normal and reflected orientations
  4. The process repeats for each small square

Mathematical Properties

  • Dimension: The Peano curve has a Hausdorff dimension of 2
  • Continuity: It's a continuous, surjective function from [0,1] to [0,1]²
  • Self-similarity: Each section is a scaled copy of the whole curve
  • Nowhere differentiable: The curve has no tangent at any point

Common Use Cases

  • Computer Graphics: Texture mapping and image processing
  • Mathematics Education: Teaching fractal geometry and limits
  • Data Structures: Spatial indexing and database queries
  • Art & Design: Creating intricate fractal patterns
  • Signal Processing: Multi-dimensional data traversal

Related Curves

  • Hilbert Curve: Another space-filling curve with 2×2 subdivisions
  • Sierpiński Curve: Based on the Sierpiński triangle
  • Moore Curve: A closed version of the Hilbert curve

Privacy & Security

All curve generation happens locally in your browser using JavaScript and HTML5 Canvas. Your data never leaves your device - complete privacy guaranteed.


❓ Frequently Asked Questions

Yes! All curve generation happens locally in your browser using JavaScript and HTML5 Canvas. Your data never leaves your device.
A space-filling curve is a curve that passes through every point in a square. The Peano curve was the first known example, discovered by Giuseppe Peano in 1890.
You can generate up to 5 iterations. Higher iterations create more detailed curves but require more processing power. Each iteration increases complexity by 9x.
Curves are exported as PNG images with transparent backgrounds. You can customize the canvas size and line colors before exporting.
Peano curves are used in computer graphics for texture mapping, spatial indexing for databases, image processing, and as educational tools for teaching fractal geometry.

Version History

1.0.0

Initial release

Jan 24, 2026