Explore the Dragon Curve

Try adjusting the parameters yourself: : : :

The Dragon Fractal: A line that folds repeatedly to become a fractal

If you take a sheet of paper and fold it in half—then fold it again, and again—and finally unfold each crease to a specific angle, what do you see? What started as a simple straight line has transformed into a series of creases running in various directions.

Now, imagine something even more fascinating: what happens if, instead of physically folding paper, we turn the act of folding into a mathematical rule and repeat that rule over and over?

The answer is that a very simple line eventually evolves into a surprisingly complex geometric pattern.

This is the Dragon Fractal, also known as the Dragon Curve.

It All Starts with a Straight Line

The Dragon Curve begins very simply—with just a single straight line. That’s all there is to it. No complex formulas, no hundreds of parameters, and no intricate geometric shapes. Just one line.

Then, we perform a very simple operation.

Imagine you are folding a piece of paper. Fold a strip of paper in half from right to left. Then, unfold it and adjust the crease to form a 90-degree angle; the original straight line now becomes two equal-length, perpendicular line segments (forming an 'L' or an inverted 'V' shape).

If you continue to follow the same pattern—folding, unfolding, folding, and unfolding again—the number of line segments multiplies.

First time: fold once. Second time: fold once. Third time: fold once.

The magic lies in the fact that the rule never changes. We don't add new rules. We don't tell it, 'Draw an angle here,' or 'Create a pretty shape there.' There is always just one simple operation. Yet, as the process repeats, the line becomes increasingly complex.

With few folds, you might see only simple zigzag lines. But as you add more folds, the line grows longer, the corners multiply, and the structure becomes more intricate. Eventually, it evolves into a truly unique shape.

When many people see it for the first time, they think, 'It really looks like a dragon.' That is how it earned the name Dragon Curve.

Of course, it isn't a real dragon; it is simply a mathematical curve generated by repeating a simple rule.

Why is it called the “Fractal Dragon”?

There is a very interesting aspect to this.

The Fractal Dragon is not a simple fractal in the traditional sense—where every part looks exactly like the whole when magnified infinitely. Its beauty lies in the fact that the same structure recurs at different scales and positions.

As you increase the number of folds, the structure becomes increasingly complex. Therefore, it belongs to the realm of what we call fractal geometry.

We can refer to each operation as a generation or an iteration.

It begins with Generation 0: a straight line.

Then, in Generation 1, a simple turn appears.

Next, in Generation 2, there are more line segments.

By Generation 3, a distinct “dragon” shape begins to emerge.

In Generation 4, the structure becomes increasingly complex.

...

By Generation 10, it has become truly beautiful.

The Most Amazing Thing: Just One Simple Rule

Imagine you already have a long, folded line. You might think, 'A pattern this complex must require a very complicated formula, right?'

In fact, it is quite the opposite; the most fascinating thing about the Dragon Curve is that its generation rule is incredibly simple. You simply keep moving forward and turning—forward, turn, forward, turn—to create increasingly complex structures.

Like many fractals, this illustrates a crucial concept: complex results do not necessarily require complex rules.

Is it really related to origami?

Yes, it is.

This is also one of the most interesting aspects of the Dragon Curve. The classic Dragon Curve can be understood in a very intuitive way: take a strip of paper, fold it in half repeatedly, and then unfold it.

Each fold determines the direction in which the next segment of the line turns. As the number of folds increases, the pattern of creases upon unfolding becomes increasingly complex. The resulting structure offers a very intuitive way to visualize the origin of the Dragon Curve.

So, you can think of it as: a mathematical strip of paper folded an infinite number of times.

However, we don't actually need to fold paper; in a computer environment, there is no need for a physical sheet. We simply instruct the program to 'generate the next line segment according to this rule.' The program can then rapidly calculate the path forward, the turning points, and the placement of new segments. Consequently, within just a few seconds, we can view the results of dozens—or even more—iterations.

Why does it become increasingly complex?

You can picture it as a path that is constantly 'replicating itself'.

It starts with just a single path. Then, it splits into two directions. New paths introduce new turns, and the number of turns keeps growing.

With each new generation, the number of line segments increases rapidly, resulting in an increasingly dense structure. This is precisely what makes fractals so fascinating.

What happens if the number of generations keeps increasing?

This is where the Dragon Fractal offers the best opportunity for interactive exploration.

You can progress from Generation 1 to Generation 5, 10, 15, and beyond... each step is like watching the 'dragon' continue to grow.

You will notice an interesting transformation: low-order dragon fractals resemble origami, while mid-order ones begin to look like a dragon. High-order dragon fractals evolve into dense geometric structures; as you increase the order further, the lines begin to form complex, filled-in areas.

In other words, what you see changes significantly with each iteration, yet the underlying rules remain constant from start to finish.

What is the difference between the Dragon Curve and the Mandelbrot Set?

If you have already explored the Mandelbrot Set, you might be thinking: "Isn't that a fractal too?"

That's right. But the ways they generate complexity are completely different.

The Mandelbrot Set is generated by iteratively calculating the behavior of a point using complex numbers to determine which region it belongs to; the result is a complex two-dimensional set.

The Dragon Curve is generated by using recursive folding rules to determine the path of the next line segment; the result is a curve of increasing complexity.

So, you can think of it simply like this:

Mandelbrot Set: Calculating a world.

Dragon Curve: Folding a path.

The methods differ, but both ultimately produce surprisingly complex structures.

The Dragon Curve: More Than Just 'Looking Like a Dragon'

It possesses a fascinating mathematical property: as the number of iterations increases, it gradually fills a two-dimensional area.

Of course, it remains a single line. However, as the line segments multiply and become increasingly dense, it creates the visual effect of “a line occupying a planar area.” This is how it evolves from a simple polyline into a highly complex geometric pattern.

The story of the dragon curve can be distilled into four steps: a line → repeated folding → continuous repetition → the emergence of a complex structure. It is that simple.

Yet, it is precisely this simplicity that makes it an ideal tool for understanding fractals. You don't need to master complex mathematics to witness firsthand how a simple rule can, step by step, create a complex world.

Continue Exploring the Infinite Micro-World

The Dragon Curve is a truly unique creation in the world of fractals. Unlike the Mandelbrot set, which relies on complex number iteration, or the Julia set, which explores different sets by varying parameters, the Dragon Curve begins with folding and recursion, building increasingly complex geometric structures step by step.

If you enjoy mathematical patterns that generate complex worlds from simple rules, you might also want to explore the Mandelbrot set, the Julia set, and Newton fractals.

Although they operate on completely different rules, they all tell a remarkably similar story: simplicity can give rise to complexity.

The Dragon Curve offers a particularly fascinating answer: sometimes, a single line needs only to be folded repeatedly to grow into a dragon.

You can also explore more amazing mathematical patterns or read more about the Dragon Curve on Wikipedia.

Want to see these stunning mathematical visuals every time you open a new tab? Install the Chrome extension now and set "Math Wonder Box" as your new tab page.🚀

Learn More