Skip to main content

ColorPrimariesExt

Trait ColorPrimariesExt 

Source
pub trait ColorPrimariesExt {
    // Required methods
    fn to_xyz_matrix(&self) -> Option<&'static GamutMatrix>;
    fn from_xyz_matrix(&self) -> Option<&'static GamutMatrix>;
}
Expand description

Adds XYZ matrix lookups to ColorPrimaries.

Required Methods§

Source

fn to_xyz_matrix(&self) -> Option<&'static GamutMatrix>

Linear RGB → CIE XYZ (D65 white point).

Returns None for Unknown.

Source

fn from_xyz_matrix(&self) -> Option<&'static GamutMatrix>

CIE XYZ (D65 white point) → linear RGB.

Returns None for Unknown.

Implementors§