colour.colour_quality_scale#

colour.colour_quality_scale(sd_test: SpectralDistribution, additional_data: bool = False, method: Union[Literal['NIST CQS 7.4', 'NIST CQS 9.0'], str] = 'NIST CQS 9.0') Union[float, ColourRendering_Specification_CQS][source]#

Return the Colour Quality Scale (CQS) of given spectral distribution using given method.

Parameters:
  • sd_test (SpectralDistribution) – Test spectral distribution.

  • additional_data (bool) – Whether to output additional data.

  • method (Union[Literal['NIST CQS 7.4', 'NIST CQS 9.0'], str]) – Computation method.

Returns:

Colour Quality Scale (CQS).

Return type:

numpy.floating or colour.quality.ColourRendering_Specification_CQS

References

[DO10], [OD08], [OD13]

Examples

>>> from colour import SDS_ILLUMINANTS
>>> sd = SDS_ILLUMINANTS["FL2"]
>>> colour_quality_scale(sd)  
64.1117031...