It led theorists like Max Planck to come up with quantum theory in which energy leaves the body in distinct packets called quanta rather than in continuous waves. The quantum theory accurately predicted the energy of the radiation that is observed.