A Description of the Formation of the Rainbow