Exaptation and the related term co-option describe a shift in the function of a trait during evolution. For example, a trait can evolve because it served one particular function, but subsequently it may come to serve another. Exaptations are common in both anatomy and behaviour.
Charles Darwin
Bird feathers of various colors
Evolution is the change in the heritable characteristics of biological populations over successive generations. It occurs when evolutionary processes such as natural selection and genetic drift act on genetic variation, resulting in certain characteristics becoming more or less common within a population over successive generations. The process of evolution has given rise to biodiversity at every level of biological organisation.
White peppered moth
Black morph in peppered moth evolution
Male moor frogs become blue during the height of mating season. Blue reflectance may be a form of intersexual communication. It is hypothesised that males with brighter blue coloration may signal greater sexual and genetic fitness.
The common garter snake has evolved resistance to the defensive substance tetrodotoxin in its amphibian prey.