colour.sd_ones¶
-
colour.
sd_ones
(shape=SpectralShape(360, 780, 1))[source]¶ Returns a spectral distribution of given spectral shape filled with ones.
Parameters: shape (SpectralShape, optional) – Spectral shape used to create the spectral distribution. Returns: Ones filled spectral distribution. Return type: SpectralDistribution Notes
- By default, the spectral distribution will use the shape given by
colour.DEFAULT_SPECTRAL_SHAPE
attribute.
Examples
>>> sd = sd_ones() >>> sd.shape SpectralShape(360.0, 780.0, 1.0) >>> sd[400] 1.0
- By default, the spectral distribution will use the shape given by