The striped pigmentation pattern of zebrafish is determined by the interaction between pigment cells with different colors. Recent studies show the behaviors of pigment cells are substantially different according to the environment. Interestingly, the resulting patterns are almost identical, suggesting a robustness of the patterning mechanism. To know how this robustness originates, we investigated the behavior of melanophores in various environments including different developmental stages, different body positions, and different genetic backgrounds. Normally, when embryonic melanophores are excluded from the yellow stripe region in the body trunk, two different cellular behaviors are observed. Melanophores migrate to join the black stripe or disappear (die) in the position. In environments where melanophore migration was restricted, we observed that most melanophores disappeared in their position, resulting in the complete exclusion of melanophores from the yellow stripe. In environments where melanophore cell death was restricted, most melanophores migrated to join the black stripes, also resulting in complete exclusion. When both migration and cell death were restricted, melanophores remained alive in the yellow stripes. These results show that migration and cell death complement each other to achieve the exclusion of melanophores. This flexibility may be the basis of the mechanistic robustness of skin pattern formation.