## 6.6.1 Color representations of the electromagnetic spectrum

Two functions, in the `colors` module, provide color objects which approximate the color of particular wavelengths of light, or of electromagnetic spectra.

colors.wavelength(,)
The colors.wavelength(,) function returns a color representation of monochromatic light at wavelength , normalised to brightness . A value of is recommended for plotting the complete span of the electromagnetic spectrum without colors clipping to white.

colors.spectrum()
The colors.spectrum() function returns a color representation of the spectrum , normalised to brightness . should be a function object that takes a single input (wavelength) with units of length, and may return an output with arbitrary units.

For an example of the use of these functions, see Section 1.12.