Tesla Coil Arc Discharge (2D)
A 2D spark-gap lab: raise the coil voltage, widen or narrow the gap, and change the humidity to watch the electric field cross the dielectric breakdown threshold and fire a jagged, branching arc.
This 2D companion models the Tesla coil's spark gap as a physical breakdown process rather than a random flair effect: the electric field between the toroid electrode and the grounded sphere is computed from voltage over gap distance, compared each frame against a humidity-adjusted dielectric breakdown threshold, and only once the field crosses that threshold does a jagged, branching arc fire — letting you see directly how raising the voltage, shortening the gap, or lowering the humidity brings the system closer to breakdown.
A capacitor-style charge value builds toward the ratio of field strength to breakdown threshold each frame; when it reaches 1.0 the gap "breaks down," a midpoint-displaced jagged path is drawn from electrode to target with occasional random branches, and the charge resets — a simplified relaxation-oscillator model of how a real spark gap fires.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install
The arc only fires once the field strength (voltage ÷ gap distance) exceeds the breakdown threshold for the current gap and humidity — raise the voltage slider or shrink the gap to force more frequent discharges.
Water vapour molecules attach free electrons before they can build an avalanche, which raises the voltage needed to break down the air — a simplified version of a real effect in high-voltage engineering.
The 3D version auto-fires arcs on a random timer with no adjustable parameters. This 2D version exposes the underlying voltage/gap/humidity relationship as real, interactive controls tied to a breakdown-field formula.