the temperature of the star causes it to change color .
Explanation:
the color of a star is linked to its surface temperature . the hottest ones are blue or blue-white, which are shorter wavelengths of light. the colder ones are red or red-brown, which are longer wavelengths .
As the magma from the volcano rises up it begins to settle as crystals and causes the chemical compositions to change and the magma has less of magnesium and more of the silica contents.
A volcano that has more of silica oxide and a high temperature but low silica contents results in a more fluid or basaltic magma and a high content result in a viscous magma and they are of high explosive in nature like the Stromboli volcano and Mount Vesuvius.