colour.colour_rendering_index#

colour.colour_rendering_index(sd_test: SpectralDistribution, additional_data: Literal[True] = True, method: Literal['CIE 1995', 'CIE 2024'] | str = 'CIE 1995') ColourRendering_Specification_CRI[source]#
colour.colour_rendering_index(sd_test: SpectralDistribution, *, additional_data: Literal[False], method: Literal['CIE 1995', 'CIE 2024'] | str = 'CIE 1995') float
colour.colour_rendering_index(sd_test: SpectralDistribution, additional_data: Literal[False], method: Literal['CIE 1995', 'CIE 2024'] | str = 'CIE 1995') float

Compute the Colour Rendering Index (CRI) \(Q_a\) of the specified spectral distribution.

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

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

  • method (Literal['CIE 1995', 'CIE 2024'] | str) – Computation method.

Returns:

Colour Rendering Index (CRI).

Return type:

float or colour.quality.ColourRendering_Specification_CRI

References

[OD08]

Examples

>>> from colour import SDS_ILLUMINANTS
>>> sd = SDS_ILLUMINANTS["FL2"]
>>> colour_rendering_index(sd)
64.2337241...