Light interacting with atmosphere

This animation shows how stellar light passing through the atmosphere of an exoplanet interacts with the atoms in the atmosphere. As each element block a specific wavelength of light, it leaves a distinguish pattern in the spectrum of the star.