colour.SpectralShape

class colour.SpectralShape(start=None, end=None, interval=None)[source]

Defines the base object for spectral distribution shape.

Parameters:
  • start (numeric, optional) – Wavelength \(\lambda_{i}\) range start in nm.
  • end (numeric, optional) – Wavelength \(\lambda_{i}\) range end in nm.
  • interval (numeric, optional) – Wavelength \(\lambda_{i}\) range interval.
start
end
interval
boundaries
__str__()[source]
__repr__()[source]
__iter__()[source]
__contains__()[source]
__len__()[source]
__eq__()[source]
__ne__()[source]
range()[source]

Examples

>>> SpectralShape(360, 830, 1)
SpectralShape(360, 830, 1)
__init__(start=None, end=None, interval=None)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__([start, end, interval]) Initialize self.
range([dtype]) Returns an iterable range for the spectral shape.

Attributes

boundaries Getter and setter property for the spectral shape boundaries.
end Getter and setter property for the spectral shape end.
interval Getter and setter property for the spectral shape interval.
start Getter and setter property for the spectral shape start.