A grid holds an electric potential: zero on the discharge, one on the far electrode, and in between the solution of Laplace’s equation. At every step, a site next to the discharge breaks down with a probability that grows with the local field raised to a power, eta; the potential is then relaxed again around the new sites. A low eta gives bushy, almost solid figures, eta near one gives feathered ones, and a high eta leaves a few lone, forked bolts. The discharge starts from a point, rises from an edge towards a charged sphere, closes in from a ring onto a central pin, or grows from both sides of a spark gap until the two halves touch, and the channel that joins them carries the current. Each branch is as thick as its Horton–Strahler order. It is drawn as glowing plasma, burned into maple or walnut along the grain, or printed in silver. Press New seed for a fresh hash, then share the URL to show someone that exact piece.
Traits
The weights were set before any drawing code was written. They were then checked against a census of 2,000 seeds.
| Trait | Values (weight) |
|---|---|
| Palette | Arc 20 · Acrylic 18 · Ember 14 · Maple 18 · Walnut 14 · Silver 16 |
| Electrode | Point 34 · Edge 22 · Ring 22 · Gap 22 |
| Breakdown | Bushy 20 · Feathered 35 · Forked 30 · Bolt 15 |
| Grain | Coarse 25 · Fine 50 · Hair 25 |
Credits
- Growth: the dielectric breakdown model of L. Niemeyer, L. Pietronero & H. J. Wiesmann, Fractal Dimension of Dielectric Breakdown, Phys. Rev. Lett. 52, 1033 (1984), itself a generalisation of diffusion-limited aggregation (T. A. Witten & L. M. Sander, 1981).
- Laplace’s equation is solved by red-black successive over-relaxation (D. M. Young, 1950), warm-started and only relaxed for a few sweeps per batch of new sites. T. Kim & M. C. Lin, Fast Animation of Lightning Using an Adaptive Mesh (2007), animate lightning with the same model and solve it exactly with conjugate gradients on adaptive grids; this series gives up that accuracy to draw a figure in a fraction of a second.
- Branch widths follow the stream order of R. E. Horton (1945) and A. N. Strahler (1957).
- The figures are named after Georg Christoph Lichtenberg, who first recorded such discharge patterns in 1777. The wood finish recalls fractal wood burning, where a high voltage is run across damp wood.
- Randomness: sfc32 by Chris Doty-Humphrey. The hash seeding, named sub-streams and verification follow Camille Roux’s genart skill (MIT).
- The palettes are original. The code was written with an AI assistant. It draws everything itself: no AI-generated images.