system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: How do animals that camouflage themselves know what color are they? E.g. how do brown moths know that they are safe on brown surfaces and not white ones?
gpt
They don't ~~chose~~ choose the colour, the colour ~~choses~~ chooses  them. If a type of moth likes to rest on dark brown bark, then moths that are naturally dark brown will be more likely to evade predators and survive while the other colour moths are eaten. Over time, only the dark brown moths will remain on the dark brown bark due to natural selection. Thus, moths that rests on dark brown bark are dark brown.