Where "E" is the energy of a photon, "h" is Planck's constant (a constant is a set number that doesn't change) and "f" is the frequency of the photon. Since a colour can be described as a specific frequency of light, this is why the black breaks can be used to identify element(s) which the light is passing through.