What is the difference between thermochromic and photochromic pigment?

Thermochromic pigments react to temperature changes, while Photochromic pigments react to UV light and sunlight exposure.