The CFA passes frequencies of light through an array to split the continuous colour spectrum into RGB.

An RGB mosaic is formed of a pattern of the colour categories, in order to represent the local colour space.

This then undergoes demosaicing to interpolate the colour values for each pixel in the mosaic.