Answer
The relative principle is blackbody radiation.
Work Step by Step
Emission of light from a heated object is the definition of blackbody radiation. As stars have an incredibly high temperature as compared to their surroundings, they radiate energy as light as well as heat.