Red giant causing helium in a shell to begin fusing. At the same time hydrogen may begin fusion in a shell just outside the burning helium shell. This puts the star onto the asymptotic giant branch, a second red-giant phase. The helium fusion results in the build up of a carbon–oxygen core. A star below about will never start fusion in its degenerate carbon–oxygen core. Instead, at the end of the asymptotic-giant-branch phase the star will eject its outer layers, forming a planetary nebula with the core of the star exposed, ultimately becoming a white dwarf. The ejection of the outer mass
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