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