What would be a reasonable explanation for the variety of colors and patterns found on snakes?

(ik this isn’t english)