No, it is not solely because of one thing (acceleration / deceleration of electrons, etc.) and you will not get a “continuous distribution of radiation” from a cold gas. As you correctly observed earlier there are a variety of mechanisms contributing to the observed spectra, whether that be black, blue or purple with yellow spots.
The term “thermal radiation” describes how an object emits and absorbs radiation at various wavelengths (all wavelengths if it’s truly black) in order to reach thermal equilibrium with its surroundings.
At extremely high temperatures x-rays are the dominant component. But you only get x-rays from nuclear transitions, right? At lower temperatures far-IR is the dominant component. But you only get far-IR photons from vibrational or rotational transitions, right? Between these two (arbitrary) extremes (near UV, visible, near IR) electronic transitions dominate, right? And further out, radio waves would dominate at the low-energy end, while gamma rays would dominant at the high-energy end.
The emission and absorption of these disparate objects (radio, microwave, IR, visible, UV, X-ray, gamma) photons proceeds via very different mechanisms, which begs the question how do these various mechanisms conspire to generate the required spectrum and reach thermal equilibrium? One might be tempted to imagine that there’s some sort of sub-atomic conspiracy going on:
Electrons: Oi Nucleus! We need another of those high-energy photons PDQ or the humans are going to figure what were up to!
Nucleus: Gimme a break I’m dancing with another nucleus to generate a low-energy photon as per your request.
Actually, there’s no conspiracy. The required spectra are brought to you courtesy of statistical physics. Everything that can happen will happen with a probability determined by Maxwell-Boltzmann, Fermi-Dirac or Bose-Einstein* and while in any given interval the spectrum won’t look exactly like what you expected, on average — ON AVERAGE — it will.
* Yea yea, density of states an' all that, as well.