The animal you're referring to is an octopus. Octopuses are famous for their remarkable camouflage abilities, allowing them to change both the color and texture of their skin to match their environment.