NASA’s Hubble Space Telescope has captured a rare event-a star going through a rapid transformation from a red giant to a planetary nebula.It sheds its outer layers of gas and dust out into the surrounding space. It sheds its outer layers of gas and dust out into the surrounding space.