[][src]Trait amethyst_rendy::palette::encoding::TransferFn

pub trait TransferFn {
    fn from_linear<T>(x: T) -> T
    where
        T: Float
;
fn into_linear<T>(x: T) -> T
    where
        T: Float
; }

A transfer function to and from linear space.

Required methods

fn from_linear<T>(x: T) -> T where
    T: Float

Convert the color component x from linear space.

fn into_linear<T>(x: T) -> T where
    T: Float

Convert the color component x into linear space.

Loading content...

Implementors

impl TransferFn for LinearFn[src]

impl TransferFn for Srgb[src]

impl<N> TransferFn for GammaFn<N> where
    N: Number
[src]

Loading content...