This applet uses a very simple model for the X-Ray spectrum.* The bulk of the spectrum is due to Bremsstrahlung while the reminder is from the characteristic X-Rays. The spectrum is further shaped by intrinsic filtering by the anode materials (since the X-rays are generally created beneath the surface of the anode).
Bremsstrahlung
Characteristic X-Rays (K-shell)
Intrinsic Filtering: energy dependent attenuation of X-rays
Additional Filtration
*Following simplified models from discussion in “Semiempirical model for generating tungsten target x-ray spectra” Douglas M. Tucker, Gary T. Barnes, and Dev P. Chakraborty, Med. Phys. 18, 211 (1991)