colour.io.sd_to_spectrum_attribute_Fichet2021#

colour.io.sd_to_spectrum_attribute_Fichet2021(sd: SpectralDistribution, decimals: int = 7) str[source]#

Convert the specified spectral distribution to a spectrum attribute value according to Fichet et al. (2021).

The conversion produces a string representation of the spectral distribution suitable for use in rendering systems, with wavelength-value pairs formatted as a semicolon-delimited list.

Parameters:
Returns:

Spectrum attribute value.

Return type:

str

References

[FPW21]

Examples

>>> sd_to_spectrum_attribute_Fichet2021(SDS_ILLUMINANTS["D65"], 2)[:56]
'300.00nm:0.03;305.00nm:1.66;310.00nm:3.29;315.00nm:11.77'