Drawing the wait for the next strike from an exponential distribution makes the storm surge and pause like the real thing. Distant lightning only changes the sky's light; nearby lightning shows its stem in full

avg 0.5sec interval · storm burst canvas · lineTo · globalCompositeOperation