And one quote from that tutorial:
“Real” shatter maps use red, green, blue, yellow, magenta, cyan, white, and black shapes that are carefully placed to produce the desired effect.
They don’t really explain, but I think the point of all the colours is just to make sure no two side-by-side fragments have the same colour.