Elements must be heated before they emit colored light because the heat being added to the elements will allow for a reaction to happen between the element and the oxygen in air. They are endothermic reactions where energy is needed in order for the reaction to proceed.