One nearly universal trick is countershading, a color pattern that helps animals erase their own shadows or blend into different backgrounds.
It’s worked well enough that nature has produced this pattern over and over again, all over Earth, for at least tens of millions of years.