The correct answer is B. the conversion of mass into energy during nuclear fusion.
In stars, nuclear fusion occurs in the core, where hydrogen atoms fuse to form helium, converting mass into energy. This process significantly increases the thermal energy of the atoms, which in turn affects the temperature and color of the light emitted by the star. The temperature of a star influences its color, with hotter stars appearing blue and cooler stars appearing red.