The midpoint-displacement path between the two electrodes is recomputed with a new seed every frame — a sustained discharge whose endpoints stay fixed while the path keeps trembling

voltage kV · branches canvas · lineTo · globalCompositeOperation