Trait palette::rgb::RgbStandard

source ·
pub trait RgbStandard {
    type Space: RgbSpace;
    type TransferFn;
}
Expand description

An RGB space and a transfer function.

Required Associated Types§

source

type Space: RgbSpace

The RGB color space.

source

type TransferFn

The transfer function for the color components.

Implementations on Foreign Types§

source§

impl<Pr, Wp, Tf> RgbStandard for (Pr, Wp, Tf)

§

type Space = (Pr, Wp)

§

type TransferFn = Tf

source§

impl<Sp, Tf> RgbStandard for (Sp, Tf)
where Sp: RgbSpace,

§

type Space = Sp

§

type TransferFn = Tf

Implementors§

source§

impl RgbStandard for Srgb

source§

impl<Sp> RgbStandard for Linear<Sp>
where Sp: RgbSpace,

§

type Space = Sp

§

type TransferFn = LinearFn

source§

impl<Sp, N> RgbStandard for Gamma<Sp, N>
where Sp: RgbSpace, N: Number,

§

type Space = Sp

§

type TransferFn = GammaFn<N>