It's really fun to play with black and white photography using various kinds of color filters and see how different you can get the same scene to appear.
(Also fun to play with a polarizing filter.)
(Also fun to play with a polarizing filter.)
The most common method is to blanket the CCD pixel array with an alternating mask of red, green, and blue (RGB) microlens filters arranged in a specific pattern, usually the Bayer mosaic pattern.
https://www.microscopyu.com/digital-imaging/introduction-to-...