Explore Fourier Epicycles

Try adjusting the parameters yourself: : : : :

Fourier Epicycles: Can a Swarm of Spinning Circles Truly Draw Any Shape?

If you keep a single circle rotating endlessly, what can it trace? Naturally, a simple circle.

Now, what if we attach the center of a second circle to the edge of the first, letting it spin alongside it? It might trace out a considerably more intricate curve.

What if we daisy-chain a third, a fourth, a fifth circle...?

It might be hard to fathom, but with enough circles, that final trailing dot can trace out a complete, intricate heart. It doesn't trace the outline directly; instead, it is collectively 'drawn' by wheel upon wheel spinning in harmony.

This is Fourier Epicycles.

Choose a Shape You Wish to See

This simulation is not limited to a heart. We have preconfigured several shapes, such as roses and five-pointed stars. When you select a shape, the program reads the configured number of circles, their radii, and speeds, and sets them in motion.

And the shape reveals itself on the canvas.

Starting from a Single Circle

Picture a circle with a tiny dot on its circumference. As the circle rotates uniformly, the dot circles around the center. The trajectory it traces is simply a circle—straightforward and elementary.

Now, let us tweak the rule slightly: place the center of a second circle right on that tiny dot of the first circle. As the first circle spins, the second circle spins too. The dot on the second circle now begins tracing a much richer path.

If we continue linking them—one circle carrying the next, and the next carrying another—a cascading chain of rotating circles appears.

The dot at the very tip moves through the combined motions of every wheel, and its trajectory is precisely what we want to discover.

Large Circles Define Contours, Small Circles Refine Details

You can think of it just like sketching.

The largest circles establish the macro shape, dictating where the pattern broadly heads. Meanwhile, the progressively smaller circles refine the nuances: bulging out slightly here, tucking in gently there, turning a sharper corner, or smoothing out an edge.

Consequently, the more circles you use, the closer the final dot's trajectory mirrors the original target shape. With only a few circles, you might only see a rough approximation; add more circles, and delicate details emerge one by one.

The more circles, the more intricate the creations.

A single circle yields only an elementary path. A few stacked circles create intricate curves. Add even more, and petals, waves, or animal silhouettes come alive...

With enough circles, it can even draw a heart.

The most wondrous part is: we never tell that final dot 'you must draw a heart.' We merely assign three parameters to each wheel: its radius, its rotational speed, and its starting phase angle, and set them spinning all at once.

The final dot naturally traces the heart's contour entirely on its own.

Why Can Spinning Circles Draw Such Complex Shapes?

At the heart of this phenomenon lies a profound mathematical insight: complex motion can be decomposed into the superposition of many simple motions.

Every individual circle performs a trivial task: revolving uniformly around its center. None of them knows what final shape will emerge. Yet when combined with carefully chosen sizes, frequencies, and initial angles, their movements superimpose. In the end, the outermost tip glides along an intricate path.

The elaborate pattern you behold is actually the composite signature left behind by many simple circular rotations.

Who Decides How Large Each Circle Should Be?

This is where the real beauty lies.

Suppose we already have a closed target curve, such as a heart. When we feed this curve into the program, it analyzes the entire contour and computes the optimal set of circles. Some are large, some smaller, and some microscopic, each revolving at its own distinct frequency. Once linked in descending order of scale, the outermost tip begins recreating the original design. Thus, in a very real sense: a heart can be disassembled into many rotating wheels.

What Is a 'Closed Curve'?

It sounds technical, but the intuition is simple: a line that starts from one point, travels continuously without breaking, and returns exactly to its starting point is a closed curve.

For example: circles, hearts, petals, triangles, and pentagrams are all closed curves. Tracing the outer edge of an object, like the outline of a letter, is also a closed curve, provided the starting and ending points coincide without interruptions.

Conversely, an open-ended line starting in one place and terminating in another, or a broken path with gaps, is not a closed curve.

The essence of Fourier Epicycles is to recreate such a seamless, end-to-end continuous contour using a linked series of rotating wheels.

Why Can Large Curves Be Decomposed into Small Circles?

This process relies on a mathematical method known as Fourier decomposition. Through Fourier decomposition, any closed curve can be broken down into a series of sinusoidal waves.

From a mathematical perspective, a point revolving uniformly along a circle is equivalent to a sinusoidal oscillation. Thus, Fourier decomposition allows us to translate a continuous closed curve into an interconnected chain of circles revolving at various speeds. This constitutes the mathematical foundation of Fourier Epicycles.

This is also where the concept gets its historical name.

The term epicycle traces its roots back to ancient Ptolemaic geocentrism in Greece. To explain the puzzling retrograde motions of planets across the sky, astronomers posited that planets revolved on a small circle (the epicycle), whose center in turn orbited on a larger circle (the deferent) around Earth. While Copernican and Keplerian heliocentric models later superseded this planetary theory, the underlying mathematical concept of wheels upon wheels is rock-solid: given enough circles, any continuous closed trajectory can be approximated arbitrarily well. This simulation builds on that very legacy—notice that in every visualization, the innermost center remains fixed while the linked wheels turn.

The Ultimate Fascination: Watching Shapes 'Grow'

At first glance, you might just see a dizzying chain of wheels whirling about, looking almost chaotic.

Yet as the tip moves, a familiar silhouette slowly crystallizes before your eyes.

First a subtle arc, then longer curves, until—the entire figure is rendered in full.

Imagine what happens if you only allow a handful of circles: the figure becomes coarse. Rounded edges turn blunt, sharp corners blur, and delicate waves disappear.

As you ramp up the circle count, details snap back into place, bringing the tip closer and closer to the exact original curve.

You witness a geometric evolution from rough approximation → refinement → razor-sharp precision.

A Fresh Perspective on Curves

When we look at a heart, we instinctively think of it as a single continuous line. But from this alternative lens, it can also be seen as: the singular trajectory swept out by a tiny point through the coordinated dance of many spinning circles of differing sizes and speeds.

A static closed contour transforms into a dynamic chain of rotating wheels, which in turn faithfully reconstruct the original curve.

It feels counterintuitive because we usually view the circle as the simplest of shapes and complex curves as far more sophisticated. Here, that intuition is flipped: intricate curves are composed of nothing more than simple circles spinning together.

Continue Exploring the Physical World

A group of continuously spinning circles, each seemingly simple and regular on its own, can jointly draw intricate curves. Complex shapes, it turns out, can be built step by step from many simple motions.

If you enjoy the process of creating complex patterns through the superposition of periodic motions, you might also like to explore other works in the same category.

The harmonograph uses pendulums swinging at different rhythms to trace elegant, ever-changing paths.

Pendulum waves feature a row of pendulums with varying speeds that collectively form a flowing wave pattern.

Meanwhile, Fourier circles offer a unique approach: a collection of circles—varying in size and speed—work in tandem to gradually 'draw' intricate shapes.

You can also continue to explore more fascinating physics phenomena.

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

Learn More
↑