original_docstring: Convert a spectrum to an rgb value.
docstring: Convert a spectrum to an rgb value.
docstring_tokens: Convert a spectrum to an rgb value .
code: def spec_to_rgb(self, spec, out_fmt=None):
          """Convert a spectrum to an rgb value."""
  
          xyz = self.spec_to_xyz(spec)
          return self.xyz_to_rgb(xyz, out_fmt)
code_tokens: def spec_to_rgb ( self , spec , out_fmt = None ) : xyz = self . spec_to_xyz ( spec ) return self . xyz_to_rgb ( xyz , out_fmt )
short_docstring: Convert a spectrum to an rgb value.
short_docstring_tokens: Convert a spectrum to an rgb value .
comment: """Convert a spectrum to an rgb value."""