colour.msds_constant#

colour.msds_constant(k: float, labels: Sequence, shape: SpectralShape = SPECTRAL_SHAPE_DEFAULT, **kwargs: Any) MultiSpectralDistributions[source]#

Return the multi-spectral distributions with given labels and given spectral shape filled with constant \(k\) values.

Parameters:
Returns:

Constant \(k\) filled multi-spectral distributions.

Return type:

colour.MultiSpectralDistributions

Notes

Examples

>>> msds = msds_constant(100, labels=["a", "b", "c"])
>>> msds.shape
SpectralShape(360.0, 780.0, 1.0)
>>> msds[400]
array([ 100.,  100.,  100.])
>>> msds.labels  
['a', 'b', 'c']