Trait palette::rgb::Primaries

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

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

Required Methods§

source

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

Primary red.

source

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

Primary green.

source

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

Primary blue.

Object Safety§

This trait is not object safe.

Implementors§