Researchers have developed a molecular switching technique to control the visible color and fluorescent properties of a compound by using hydrogen and oxygen gas. This innovative work is environmentally friendly since it uses the energy from the two gases to switch the color and fluorescence of a compound and produces only water as a byproduct.