When flowers obtain light, photosynthesis takes place to make oxygen. 
Chlorophyll is the chemical that allows plants to capture sunlight
Chlorophyll is the chemical that allows photosynthesis to take place to make oxygen