There is a layer called chameleon where the chameleon is seated to protect the predators from sun protection, which helps in changing the color according to the environment. The photonic crystal layer affects the reflection of light, reflecting the changed color of the chameleon. For example, when the chameleon is excited, the layer of photonic crystals becomes loose, reflecting red and yellow colors. They save themselves by changing their color. According to a recent research, chameleons change color according to their emotions. Chameleons change their color for aggression, communication and to show their mood. According to research, chameleons often change their color, not just their brightness. At the same time, in case of danger, chameleons change their color as well as size. The chameleon can also enlarge its size and make it smaller if needed.