Red giant and helium core flash. When the ascent of the red-giant branch ends they puff off their outer layers much like a post-asymptotic-giant-branch star and then become a white dwarf. Very low mass stars are fully convective and may continue to fuse hydrogen into helium for up to a trillion years until only a small fraction of the entire star is hydrogen. Luminosity and temperature steadily increase during this time, just as for more-massive main-sequence stars, but the length of time involved means that the temperature eventually increases by about 50% and the luminosity by around 10 times. Eventually the level
Blue giant both cooler and more luminous. Intermediate-mass stars will continue to expand and cool until they become red giants. Massive stars also continue to expand as hydrogen shell burning progresses, but they do so at approximately constant luminosity and move horizontally across the HR diagram. In this way they can quickly pass through blue giant, bright blue giant, blue supergiant, and yellow supergiant classes, until they become red supergiants. The luminosity class for such stars is determined from spectral lines that are sensitive to the surface gravity of the star, with more expanded and luminous stars being given I (supergiant) classifications