Diffraction gratings are curious things. Score a series of equally spaced tiny lines in a surface, and it will cause reflected or transmitted light to bend and separate into its component wavelengths.