The functionality of smart pigments relies on the manipulation of nanostructures to achieve desired optical effects. For instance, thermochromic pigments change color with temperature variations, while photochromic pigments respond to changes in light exposure. The underlying mechanism often involves the alteration of electronic states or structural rearrangements at the nanoscale, which affect the way the material interacts with light.