How does a peacock adapt to its habitat?

It adapts to its habitat because it has colourful feathers and it eats the things in its habitat