Electrons leave a hot cathode and are accelerated toward a grid by a voltage U across a gap d; with no collisions the kinetic energy at distance x would be eUx/d. The tube holds vapour with number density n = p/kT and cross-section σ, so the mean free path is λ = kT/(σp) (mercury: p from a fitted vapour-pressure law valid for about 100–300 °C; λ is only tens of micrometres, so each electron suffers hundreds of collisions). Collisions are elastic (no energy loss) until an electron carries at least the first excitation energy Eex = 4.9 eV; then it can give up exactly that amount to an atom, which later emits 253.7 nm ultraviolet light (the violet glow here).
Between the grid and the anode a small retarding voltage Vr stops electrons that arrive with less than eVr. As U rises the current climbs, then drops when electrons start to lose 4.9 eV just before the grid, and climbs again: the maxima are spaced by Eex/e (Franck and Hertz, 1914), direct evidence that atomic energy levels are discrete. The plotted current is the passing fraction times a Child–Langmuir-like envelope (U/10)3/2.
The electrons are a Monte-Carlo ensemble: free paths are drawn from −λ ln(1−r); at each collision above threshold the excitation probability ramps up over a width w (1 eV) as pex(1−e−(KE−Eex)/w).
Honest simplifications: one dimension along the tube axis (collisions do not change the direction of travel; lateral scatter is only drawn), a single excitation level, no contact potential and no ionisation, electrons shown in slow motion with a speed that grows like √KE but not to scale, and tube length and gas density are not to scale (the real gap is 8 mm). “Neon-like” and “argon-like” use the textbook first excitation energies with the same cross-section model. Bench, oven, glass tube, grid and instruments were modelled and baked in Blender.