the reason for the blending of skin color occurs when...
The expansion and contraction of the color cells is controlled by the chameleon's brain to cause a color change.
The melanin in the inner layer can move closer to, or farther away from, the skin surface allowing it to blend in with, blot out, or intensify color from other cells.
hope this helps and have a great day!