They say a picture is worth a thousand words...
Here's a picture (Miss Jane

) to help explain what was saying.
The spectrum is a standard library spectrum of a G2V star, same as our sun. The smooth curve is the Plank curve for 5700K i.e. the black body radiation curve for our sun. Refer to this as you read my previous explanation. It may help.
Al.