Alexis Mabanza @ alexvolkihar.ovh

Epicycles

A closed curve redrawn by chains of turning circles

Any closed line can be redrawn by a chain of circles. Each circle turns a whole number of times per revolution and carries the next one on its rim, and the last arm holds the pen. The circles are the terms of the curve’s Fourier series. Each piece starts from a curve made from the hash: a stroke that looks like a letter, a wobbly outline, a star or an irregular shard. Only some of the circles are kept, either the largest ones or the slowest ones. The pen therefore rounds the corners and leaves small ripples next to them.

The plates are drawn like old astronomy or engineering diagrams. A frozen machine shows the line half drawn, with a magnified detail of the small circles near the pen. A stroboscope overlays the same chain at several moments. A fan stacks the approximations with 1, 2, 4, 8… circles. A table shows nine of them side by side, with the number of circles counted in tally marks. On a harmonic synthesiser plate, two chains drive the pen, one along each axis. Press New seed for a fresh hash, then share the URL to show someone that exact piece.

All series
0x7cebea2c…126e
Palette InkSubject GlyphPlate StrobeTerms FewOrder By amplitude
0xecfe5bb5…0a31
Palette InkSubject StarPlate AxesTerms FewOrder By frequency
0x586119d9…fae3
Palette BlueprintSubject StarPlate FanTerms FewOrder By amplitude
0xf37afa12…d4cd
Palette BlueprintSubject GlyphPlate AxesTerms ManyOrder By frequency
0x66be159c…02da
Palette BlueprintSubject StarPlate ChainTerms ManyOrder By amplitude
0xd3f80979…7560
Palette VellumSubject StarPlate FanTerms SomeOrder By frequency
0xb2057b61…dc1b
Palette ChalkboardSubject BlobPlate TableTerms FewOrder By frequency
0x7e3150c9…8249
Palette InkSubject GlyphPlate ChainTerms FewOrder By amplitude
0xde262885…cbcd
Palette VellumSubject BlobPlate StrobeTerms ManyOrder By amplitude
0x098d40c6…d67a
Palette BlueprintSubject BlobPlate TableTerms SomeOrder By frequency
0x4f0f327f…f7bb
Palette OrrerySubject GlyphPlate FanTerms ManyOrder By frequency
0x5944cff5…7bcd
Palette OrrerySubject StarPlate ChainTerms FewOrder By frequency

Traits

The weights were set before any drawing code was written. They were then checked against a census of 2,000 seeds.

TraitValues (weight)
PaletteInk 26 · Chalkboard 22 · Blueprint 20 · Vellum 18 · Orrery 14
SubjectGlyph 32 · Blob 26 · Star 24 · Shard 18
PlateChain 30 · Fan 24 · Strobe 18 · Table 14 · Axes 14
TermsFew 25 · Some 45 · Many 30
OrderBy amplitude 62 · By frequency 38

Credits

  • Epicycles: the deferent-and-epicycle models of Greek astronomy, from Apollonius of Perga and Hipparchus to Ptolemy’s Almagest, which describe the motion of a planet as circles carried on circles.
  • Fourier series: Joseph Fourier, Théorie analytique de la chaleur (1822). Here the curve is sampled at 1,024 equal steps of arc length, and its complex coefficients c_k for k = −128…128 come from a direct discrete Fourier transform. Each coefficient becomes one circle of radius |c_k| that turns k times per revolution.
  • Harmonic synthesisers: Lord Kelvin’s tide-predicting machine (1872–73), and A. A. Michelson and S. W. Stratton’s A new harmonic analyser (Philosophical Magazine, 1898). Both add up rotating components mechanically. The axes plate follows the same idea, with one chain for x and one for y.
  • The ripples next to the corners of a truncated series: the Gibbs phenomenon, first described by Henry Wilbraham (1848), then by J. Willard Gibbs (1898–99), and named by Maxime Bôcher (1906).
  • The epicycle drawings of Fourier series are well known from Grant Sanderson’s 3Blue1Brown video But what is a Fourier series? (2019) and Daniel Shiffman’s Coding Train challenge Drawing with Fourier Transform and Epicycles (2019). The code here is original.
  • Subjects: the letter-like strokes are centripetal Catmull–Rom splines (Catmull and Rom, 1974; centripetal form by Yuksel, Schaefer and Keyser, 2011) through a few cells of a 4 × 4 grid. The other subjects are a polar outline, star polygons and irregular polygons. The palettes are original.
  • Randomness: sfc32 by Chris Doty-Humphrey, seeded from the hash with named sub-streams, following Camille Roux’s genart skill (MIT).
  • The code was written with an AI assistant. It draws everything itself: no AI-generated images.

Artworks © Alexvolkihar, licensed CC BY-NC-ND 4.0. Code under the repository licence (MIT).


>