A hot solid object surrounded by a cool tenuous gas produces light with an almost continuous spectrum which has gaps at discrete wavelengths depending on the energy levels of the atoms in the gas