Gene duplication and differential gene expression play an important role in the diversification of visual pigments in fish.