colour.msds_ones¶
- colour.msds_ones(labels, shape=SpectralShape(360, 780, 1))[source]¶
Returns the multi-spectral distributionss with given labels and given spectral shape filled with ones.
- Parameters
labels (array_like) – Names to use for the
colour.SpectralDistribution
class instances.shape (SpectralShape, optional) – Spectral shape used to create the multi-spectral distributions.
- Returns
Ones filled multi-spectral distributions.
- Return type
Notes
By default, the multi-spectral distributions will use the shape given by
colour.SPECTRAL_SHAPE_DEFAULT
attribute.
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']