Tesla Coil

Procedural jagged lightning arcs leap between the coil's toroid and a nearby sphere electrode, continuously regenerating in a violet-blue electric glow. Each arc is a Catmull-Rom spline through randomly displaced midpoints, rendered as three nested additive-blended tubes (core, glow, outer glow) for a realistic bloom, and roughly 60% of arcs spawn a secondary branch partway along their path, just like real dielectric breakdown.

Controls