New research has changed the theory of how chameleons change the color of their skin to avoid danger.