(READ THIS FIRST) i probably left some stuff its pretty rough so don't judge this to harshly i spent 3 days making this
https://imagine.gsfc.nasa.gov/educators/lessons/xray_spectra/background-lifecycles.html source text