The hardness (energy or penetrating power) of X-rays is determined by the kinetic energy of the electrons striking the target. This energy is controlled by the high potential difference (accelerating voltage) applied between the cathode and the anticathode (anode).