colour.sd_single_led#

colour.sd_single_led(peak_wavelength: float, shape: SpectralShape = SPECTRAL_SHAPE_DEFAULT, method: Literal['Ohno 2005'] | str = 'Ohno 2005', **kwargs: Any) SpectralDistribution[source]#

Return a single LED spectral distribution of given spectral shape at given peak wavelength according to given method.

Parameters:
  • peak_wavelength (float) – Wavelength the single LED spectral distribution will peak at.

  • shape (SpectralShape) – Spectral shape used to create the spectral distribution.

  • method (Literal['Ohno 2005'] | str) – Computation method.

  • kwargs (Any) – {colour.colorimetry.sd_single_led_Ohno2005()}, See the documentation of the previously listed definition.

Returns:

Single LED spectral distribution.

Return type:

colour.SpectralDistribution

Notes

References

[Ohn05], [OD08]

Examples

>>> sd = sd_single_led(555, half_spectral_width=25)
>>> sd.shape
SpectralShape(360.0, 780.0, 1.0)
>>> sd[555]  
1...