Figure 6-20: RIVUXG A Grating Spectrograph(a) This optical device uses a diffraction grating to break up the light from a source into a spectrum. The spectrum is then recorded on a CCD. (b) A diffraction grating has a large number of parallel lines in its surface that reflect light of different colors in different direction. A compact disc, which stores information in a series of closely spaced pits, reflects light in a similar way.