What does the energy of the emitted electrons depend on ?
Heat energy from the flame excites electrons to a higher quantum level , and the atoms emit characteristic colors ( photons with energies corresponding to the visible spectrum ) as they return to lower energy levels .