[][src]Trait amethyst_rendy::palette::rgb::Primaries

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

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

Required methods

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

Primary red.

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

Primary green.

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

Primary blue.

Loading content...

Implementors

impl Primaries for Srgb[src]

Loading content...