pub trait Primaries: Any {
    // Required methods
    fn red<Wp, T>() -> Yxy<Wp, T>
       where Wp: WhitePoint,
             T: Component + Float;
    fn green<Wp, T>() -> Yxy<Wp, T>
       where Wp: WhitePoint,
             T: Component + Float;
    fn blue<Wp, T>() -> Yxy<Wp, T>
       where Wp: WhitePoint,
             T: Component + Float;
}
Expand description

Represents the red, green and blue primaries of an RGB space.

Required Methods§

source

fn red<Wp, T>() -> Yxy<Wp, T>
where Wp: WhitePoint, T: Component + Float,

Primary red.

source

fn green<Wp, T>() -> Yxy<Wp, T>
where Wp: WhitePoint, T: Component + Float,

Primary green.

source

fn blue<Wp, T>() -> Yxy<Wp, T>
where Wp: WhitePoint, T: Component + Float,

Primary blue.

Object Safety§

This trait is not object safe.

Implementors§