pub trait RgbSpace {
type Primaries;
type WhitePoint;
// Provided methods
fn rgb_to_xyz_matrix() -> Option<[f64; 9]> { ... }
fn xyz_to_rgb_matrix() -> Option<[f64; 9]> { ... }
}
Expand description
A set of primaries and a white point.
Required Associated Types§
sourcetype WhitePoint
type WhitePoint
The white point of the RGB color space.
Provided Methods§
sourcefn rgb_to_xyz_matrix() -> Option<[f64; 9]>
fn rgb_to_xyz_matrix() -> Option<[f64; 9]>
Get a pre-defined matrix for converting an RGB value with this standard into an XYZ value.
Returning None
(as in the default implementation) means that the
matrix will be computed dynamically, which is significantly slower.
sourcefn xyz_to_rgb_matrix() -> Option<[f64; 9]>
fn xyz_to_rgb_matrix() -> Option<[f64; 9]>
Get a pre-defined matrix for converting an XYZ value into an RGB value with this standard.
Returning None
(as in the default implementation) means that the
matrix will be computed dynamically, which is significantly slower.
Object Safety§
This trait is not object safe.