Kmeans project image segmentation

What is colour swatch , why we make that 100X100X3 matrix of zeroes in each iteration

Color swatch means a image of color.
It is 100X100 image with 3 channels - RGB.