Atoms jiggle around because of temperature. This jiggling jiggles the electrons too. When electrons move back and forth, they create light. In fact thats basically what light is, a history of the motion of an electron, propogating outward at the speed of light.
We can relate the frequency/color of light to the temperature associated with the amount of jiggling in the atoms, which is what we call temperature
Latest Answers