Gravity pulls inward and is counterbalanced by pressures pushing the hot gas out.
If there were no pressure inside stars, they would collapse and become a black holes. Cosmology - The science of the Universe by Edward R. Harrison, p. 30. True, The color of a star is determined by the temperature of the star's surface. The temperature of a star's surface is determined by the rate the star is burning hydrogen into helium. Cosmology - The science of the Universe by Edward R. Harrison, p. 29. 3.