colour.sd_ones#
- colour.sd_ones(shape: SpectralShape = SPECTRAL_SHAPE_DEFAULT, **kwargs: Any) SpectralDistribution[source]#
Generate a spectral distribution of the specified spectral shape filled with ones.
- Parameters:
shape (SpectralShape) – Spectral shape used to create the spectral distribution.
kwargs (Any) – {
colour.sd_constant()}, See the documentation of the previously listed definition.
- Returns:
Ones-filled spectral distribution.
- Return type:
Notes
By default, the spectral distribution will use the shape specified by
colour.SPECTRAL_SHAPE_DEFAULTattribute.The interpolator is set to
colour.LinearInterpolatorclass.
Examples
>>> sd = sd_ones() >>> sd.shape SpectralShape(360.0, 780.0, 1.0) >>> sd[400] 1.0