A star with a mass similar to our Sun will throw off its outer gases once its core has ceased burning. The appearance of the cast-off gases as a ring is an illusion, the ring is actually a spherical shell. At the centre, a blue dot is visible which is the old core of the star, known as a white dwarf.
Photo Credit: The Electronic Universe Project, Nelson Caldwell