One way to transfer energy is with electromagnetic waves. Visible light is one type of electromagnetic radiation; there’s also infrared, x-rays, gamma rays. These are all the same type of waves but with different wavelengths. And they can all transfer energy.