colour.msds_ones#
- colour.msds_ones(labels: Sequence, shape: SpectralShape = SPECTRAL_SHAPE_DEFAULT, **kwargs: Any) MultiSpectralDistributions[source]#
Generate multi-spectral distributions with the specified labels and spectral shape filled with ones.
- Parameters:
labels (Sequence) – Names to use for the
colour.SpectralDistributionclass instances.shape (SpectralShape) – Spectral shape used to create the multi-spectral distributions.
kwargs (Any) – {
colour.msds_constant()}, See the documentation of the previously listed definition.
- Returns:
Ones-filled multi-spectral distributions.
- Return type:
Notes
By default, the multi-spectral distributions will use the shape specified by
colour.SPECTRAL_SHAPE_DEFAULTattribute.The interpolator is set to
colour.LinearInterpolatorclass.
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']