A pen at the end of a chain of rotating circles can draw any closed shape, a heart included. The free Epicycles Draw Anything app builds the chain from a sketch: choose a shape or draw one with the mouse, and a slider sets how many circles are kept.
Open the app in its own tab, or use its Full screen button.
From a path to circles
The method treats each point of the outline as a complex number, x + iy, and runs a discrete Fourier transform over the samples. MathWorld defines the transform as a map from N samples to N frequency components, each one a sum of the samples times a complex exponential, divided by N. Every component is one circle: its size is the amplitude, its spin rate is the frequency, and its starting angle is the phase.
Sorting the circles by size and adding them from the largest down gives the best approximation at every count. The biggest circle in the heart sets the overall width, and each later one corrects what is left.

Eight circles are enough for this heart
The heart in the app is the parametric curve from the heart curve post: x = 16 sin³t and y = 13 cos t − 5 cos 2t − 2 cos 3t − cos 4t. After the shape is centered and scaled to fit, the largest circle has a radius of 0.735 and the next two are 0.176 and 0.147, with the scale set so the larger of the heart’s half-width and half-height equals 1.
Measured against the original outline on 256 sample points, the error falls with each circle added. The root-mean-square gap is 0.28 with one circle, 0.17 with three and 0.05 with five. At eight circles it drops to rounding error and stays there.
That cutoff is not a coincidence. The curve contains nothing faster than a fourth harmonic, so only frequencies from −4 to 4 carry energy, and once the centering removes the constant term eight circles cover them all. A shape with corners has no such limit.

Corners need many more
The star preset in the app has five sharp points, and a finite chain of circles can only round them. The picture below keeps thirty circles. Drawing a shape by hand adds a second effect: the transform assumes the outline repeats, so the pen’s last point is joined back to its first.

Where the circles come from
MathWorld defines an epicycloid as the curve traced by a point on a circle that rolls around the outside of a fixed circle. The cardioid is its one-cusp case and the nephroid its two-cusp case. Two circles joined end to end are the smallest version of the chain used here, and the square-wave post builds a different shape by the same adding-up idea with sine waves.
Sources
Error figures and circle sizes were computed from the 256-point heart outline used in the app.
