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

pub trait TransferFn: 'static {
    fn from_linear<T: Float + FromF64>(x: T) -> T;
fn into_linear<T: Float + FromF64>(x: T) -> T; }

A transfer function to and from linear space.

Required methods

fn from_linear<T: Float + FromF64>(x: T) -> T[src]

Convert the color component x from linear space.

fn into_linear<T: Float + FromF64>(x: T) -> T[src]

Convert the color component x into linear space.

Loading content...

Implementors

impl TransferFn for LinearFn[src]

impl TransferFn for Srgb[src]

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

Loading content...