colour.msds_ones#

colour.msds_ones(labels: Sequence, shape: colour.colorimetry.spectrum.SpectralShape = SPECTRAL_SHAPE_DEFAULT, **kwargs: Any) colour.colorimetry.spectrum.MultiSpectralDistributions[source]#

Return the multi-spectral distributionss with given labels and given spectral shape filled with ones.

Parameters
Returns

Ones filled multi-spectral distributions.

Return type

colour.MultiSpectralDistributions

Notes

Examples

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