Skip to main content

Module model

Module model 

Source
Expand description

Color model type definitions.

Structs§

Cmyk
Device-dependent CMYK. The mapping to XYZ is defined by a runtime ICC profile. Channels are always [C, M, Y, K] in that order.
DeviceRgb
Device-dependent RGB. The mapping to XYZ is defined by a runtime ICC profile. Layout defaults to Rgba.
Grid380_730_10nm
CIE 10 nm spectral grid, 380–730 nm (36 bands).
Grid380_780_5nm
CIE 5 nm spectral grid, 380–780 nm (81 bands).
Grid380_780_10nm
CIE 10 nm spectral grid, 380–780 nm (41 bands).
Grid400_700_10nm
CIE 10 nm spectral grid, 400–700 nm (31 bands).
IsBispectral
Spectral kind marker for bispectral (fluorescent) reflectance.
IsRadiance
Spectral kind marker for spectral radiance, unbounded above.
IsReflectance
Spectral kind marker for spectral reflectance in [0, 1].
IsTransmittance
Spectral kind marker for spectral transmittance in[0, 1].
LCh
CIE LCh*, the polar form of CIELab.
Lab
CIE 1976 Lab* color space under reference white W.
Luma
Luma derived from an RGB space with primaries P and transfer function TF.
LumaAlpha
Luma with an alpha channel. Alpha state defaults to Straight.
Oklab
Oklab perceptual color space by Björn Ottosson, 2020.
Oklch
Oklch, the polar form of Oklab.
Rgb
A color model formed by composing primaries P, transfer function TF, and channel layout L. Layout defaults to Rgba.
Spectral
A spectral color value on grid G encoding physical quantity K.
Xyz
CIE XYZ tristimulus space normalized to Y = 1 under illuminant W.
YCbCr
YCbCr derived from an RGB space with primaries P and transfer function TF.

Traits§

Bispectral
Blanket alias: any spectral space whose kind is IsBispectral.
ColorMatchingFunctions
Color matching functions for a specific observer evaluated on a specific grid.
Radiance
Blanket alias: any spectral space whose kind isIsRadiance.
Reflectance
Blanket alias: any spectral space whose kind is IsReflectance.
SpectralKind
Identifies the physical quantity encoded by a spectral color value.
SpectralSpace
Implemented by any spectral model that declares a physical kind.
Transmittance
Blanket alias: any spectral space whose kind is IsTransmittance.
WavelengthGrid
A physical wavelength axis.

Type Aliases§

Spectral31Radiance
Spectral radiance on the 31-band ICC grid (400–700 nm, 10 nm).
Spectral31Reflectance
Spectral reflectance on the 31-band ICC grid (400–700 nm, 10 nm).
Spectral31Transmittance
Spectral transmittance on the 31-band ICC grid (400–700 nm, 10 nm).
Spectral36Radiance
Spectral radiance on the 36-band Stam rendering grid (380–730 nm, 10 nm).
Spectral36Reflectance
Spectral reflectance on the 36-band Stam rendering grid (380–730 nm, 10 nm).
Spectral36Transmittance
Spectral transmittance on the 36-band Stam rendering grid (380–730 nm, 10 nm).
Spectral41Radiance
Spectral radiance on the 41-band full-visible grid (380–780 nm, 10 nm).
Spectral41Reflectance
Spectral reflectance on the 41-band full-visible grid (380–780 nm, 10 nm).
Spectral41Transmittance
Spectral transmittance on the 41-band full-visible grid (380–780 nm, 10 nm).
Spectral81Radiance
Spectral radiance on the 81-band CIE standard grid (380–780 nm, 5 nm).
Spectral81Reflectance
Spectral reflectance on the 81-band CIE standard grid (380–780 nm, 5 nm).
Spectral81Transmittance
Spectral transmittance on the 81-band CIE standard grid (380–780 nm, 5 nm).