[][src]Trait amethyst_rendy::palette::chromatic_adaptation::TransformMatrix

pub trait TransformMatrix<Swp, Dwp, T> where
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
{ fn get_cone_response(&self) -> ConeResponseMatrices<T>; fn generate_transform_matrix(&self) -> [T; 9] { ... } }

Generates a conversion matrix to convert the Xyz trisitmilus values from one illuminant to another (Swp -> Dwp)

Required methods

fn get_cone_response(&self) -> ConeResponseMatrices<T>

Get the cone response functions for the chromatic adaptation method

Loading content...

Provided methods

fn generate_transform_matrix(&self) -> [T; 9]

Generates a 3x3 transformation matrix to convert color from one reference white point to another with the given cone_response

Loading content...

Implementors

impl<Swp, Dwp, T> TransformMatrix<Swp, Dwp, T> for Method where
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

Loading content...