Breaking up white light into its constituent wavelengths and measuring them on a calibrated scale.