Cantstandit said:
Thanks for the answers, but I still fail to understand how finite number of photons can cover what seems to be infinite number of frequencies in the spectrum...
I do not officially know what I'm talking about, but here goes.
Maybe theoretically they don't cover every possible infinitesimal change in frequency, but enough to show us that it follows a mathematically smooth probability curve. And when you get the spectrum of a star it comes with a resolution that may be to large to show the small small gaps that may theoretically be there.
Theoretically it may be possible to get a spectrum resolution high enough to show the random gaps in the curve over a small small time interval. Maybe this has been done, I have no idea.
End of speculation.
From now on I know pretty much what I'm talking about.
Seems like you have some flawed notion of how stars shine, so here goes.
Stars are called and ideal black body because they do not transmit any light, and they don't reflect any light. Any light you see from a star is created by the star itself.
They shine due heat generated by nuclear fusion in the core. The energy released goes into exiting the hydrogen and helium particles within. This, and the gravitational pressure asserted on the core is what is causing them to bump into each other emitting photons. This is called thermal radiation. Temperature is in fact a measure of the random motion of particles.
When you have a black body radiating (as a star) you get an idealized light curve (image below) that depends almost entirely on its temperature. The chemical composition plays some part, but it is mostly on the temperature.
When the photon passes through the atmosphere of the sun some light gets scattered by the atmosphere. This causes the continuous spectra of the sun to have dips in its emission lines. These dips are what tells us the chemical composition of the sun, or at least its atmosphere, which we think is representative of the entire star.
I just googled for black body radiation curve and this came up.
White light is the mixture of colours from the whole visible spectra. When the peak in brightness of a black body is smack in the middle of the visible spectrum it comes off as white light.
If the star has higher temperature, the photons escaping will have a higher energy, which translates into shorter wavelength, which result in the star looking more blue.
So the curve of the black body radiation curve depends only on its temperature. Our sun is of the right temperature to radiate white light.
Hope this helps.