pub trait TransferFn {
    // Required methods
    fn from_linear<T: Float>(x: T) -> T;
    fn into_linear<T: Float>(x: T) -> T;
}
Expand description

A transfer function to and from linear space.

Required Methods§

source

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

Convert the color component x from linear space.

source

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

Convert the color component x into linear space.

Object Safety§

This trait is not object safe.

Implementors§