energy increases, so electrons jump to higher energy levels, and once they go back down, they emit waves of light
(the difference between energy levels determine wavelengths and frequencies of visible light region, causing us to see certain colors - e.g. shortest frequencies = blue)