colour.msds_zeros¶
- colour.msds_zeros(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 zeros.
- Parameters
labels (Sequence) – Names to use for the
colour.SpectralDistribution
class instances.shape (colour.colorimetry.spectrum.SpectralShape) – Spectral shape used to create the multi-spectral distributions.
kwargs (Any) – {
colour.msds_constant()
}, See the documentation of the previously listed definition.
- Returns
Zeros 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_zeros(labels=['a', 'b', 'c']) >>> msds.shape SpectralShape(360.0, 780.0, 1.0) >>> msds[400] array([ 0., 0., 0.]) >>> msds.labels ['a', 'b', 'c']