What does the energy of a photon depend on?
To understand the energy of the photon, we must understand that photons have the same quantum of action Planck h.
Planck's constant = 6.62607004 × 10-34 m2 kg / s
The only difference between them is the amount of time the Planck resides in. The Period is the fix delivery time of the Planck. In other words, the photon is power or a Planck quantum of action locked into a specific delivery time. It will be emitted or absorbed by an oscillator having the same rate of transfer. A UV photon has more power than a red photon simply because it delivers its quantum of action in a shorter amount of time. This requires that we re-think the meaning of the work done and “energy levels”. In a universe with a running time background, how quickly things happen is what matters. (Forget wave collapse, an uninvited synonym for “instantaneous”).