onlinefractaltools logo

Hilbert fractal

World's simplest fractal tool

This utility lets you draw custom and colorful Hilbert fractals. You can customize Hilbert fractal's width and height, fractal curve's color and width, as well as the background color. You can also set its orientation and change the number of recursive iterations. As the Hilbert fractal is space-filling, then given enough iterations, this fractal will eventually fill entire space. Fractabulous!
announcement we've created devurls!
We just created another project – DEVURLS – world's simplest developer news aggragator. Check it out!
Space and Recursion Options
Fractal width.
Fractal height.
Recursive depth of the fractal.
Curve and Background Colors
Fractal curve color.
Fractal curve width.
Background color.
Padding and Orientation
Padding around the fractal. (In pixels.)
Hilbert fractal's orientation.
Hilbert fractal tool What is a hilbert fractal?
This online browser-based tool illustrates Hilbert fractals. It's useful if you want to create your own personal Hilbert fractal. The Hilbert fractal is actually a variant of the space-filling Peano fractal and it grows exponentially with each iteration size. The space-filling property means that given enough iterations, it will always fill the entire given space without ever crossing itself. Mind blowing and ingenious at the same time, or as we love to say – fractabulous!
Hilbert fractal examples Click to use
Fourth-order Hilbert Fractal
In this example, we set the iterations count to 4 and that created a 4th-order Hilbert fractal. We love colors so we also chose cardinal pink as the background color and Paris daisy yellow as curve color.
In this example, we set the iterations count to 4 and that created a 4th-order Hilbert fractal. We love colors so we also chose cardinal pink as the background color and Paris daisy yellow as curve color.
Required options
These options will be used automatically if you select this example.
Fractal width.
Fractal height.
Recursive depth of the fractal.
Fractal curve color.
Fractal curve width.
Background color.
Padding around the fractal. (In pixels.)
Hilbert fractal's orientation.
A Vertical Hilbert Curve
In this example, we're drawing a Hilbert curve in a 500x800 space. As the height is larger than width, it creates a vertical Hilbert fractal curve.
In this example, we're drawing a Hilbert curve in a 500x800 space. As the height is larger than width, it creates a vertical Hilbert fractal curve.
Required options
These options will be used automatically if you select this example.
Fractal width.
Fractal height.
Recursive depth of the fractal.
Fractal curve color.
Fractal curve width.
Background color.
Padding around the fractal. (In pixels.)
Hilbert fractal's orientation.
A Hilbert Maze
In this example, we've set the recursion depth to 6. We've chosen a green color for the curve and it makes this example look like a maze. We call it a Hilbert Maze. (Fun stuff: If you change the depth to 7, then the fractal will fill entire space. Try it!)
In this example, we've set the recursion depth to 6. We've chosen a green color for the curve and it makes this example look like a maze. We call it a Hilbert Maze. (Fun stuff: If you change the depth to 7, then the fractal will fill entire space. Try it!)
Required options
These options will be used automatically if you select this example.
Fractal width.
Fractal height.
Recursive depth of the fractal.
Fractal curve color.
Fractal curve width.
Background color.
Padding around the fractal. (In pixels.)
Hilbert fractal's orientation.
Pro tips Master online fractal tools
You can pass options to this tool using their codes as query arguments and it will automatically compute output. To get the code of an option, just hover over its icon. Here's how to type it in your browser's address bar. Click to try!
https://onlinefractaltools.com/draw-hilbert-fractal?&width=500&height=500&iterations=4&background-color=%238a0863&line-segment-color=%23fff373&line-width=4&padding=15&direction=right
All fractal tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly draw a custom Gosper fractal.
Quickly draw a custom Z-order fractal.
Quickly draw a custom Hilbert fractal.
Quickly draw a custom binary v-fractal.
Quickly draw a custom Peano fractal.
Quickly draw a custom Heighway dragon fractal.
Quickly draw a custom twin dragon Heighway fractal.
Quickly draw a custom Heighway nonadragon fractal.
Quickly draw a custom Hausdorff tree fractal.
Quickly draw a custom Moore fractal.
Coming soon These fractal tools are on the way
Fractal Canopy
Generate a fractal tree canopy.
Mandelbrot Tree
Generate a Mandelbrot tree fractal.
Barnsey's Tree
Generate a Barnsley's tree fractal.
Barnsey's Fern
Generate a Barnsley's fern fractal.