How does nemos stripes help him survive?

Stripes/spots/patterns on any animal or fish help to hide it in the background to avoid predators or to attract it to others of its kind or in some cases attract prey for food.