A star or planet often is modeled as a black body, and electromagnetic radiation emitted from these bodies as black-body radiation. The figure shows a highly schematic cross-section to illustrate the idea. The photosphere of the star, where the emitted light is generated, is idealized as a layer within which the photons of light interact with the material in the photosphere and achieve a common temperature T that is maintained over a long period of time. Some photons escape and are emitted into space, but the energy they carry away is replaced by energy from within the star, so that the temperature of the photosphere is nearly steady. Changes in the core lead to changes in the supply of energy to the photosphere, but such changes are slow on the time scale of interest here. Assuming these circumstances can be realized, the outer layer of the star is somewhat analogous to the example of an enclosure with a small hole in it, with the hole replaced by the limited transmission into space at the outside of the photosphere. With all these assumptions in place, the star emits black-body radiation at the temperature of the photosphere.