Trait palette::encoding::TransferFn
source · [−]pub trait TransferFn: 'static {
fn from_linear<T: Float + FromF64>(x: T) -> T;
fn into_linear<T: Float + FromF64>(x: T) -> T;
}Expand description
A transfer function to and from linear space.
Required Methods
fn from_linear<T: Float + FromF64>(x: T) -> T
fn from_linear<T: Float + FromF64>(x: T) -> T
Convert the color component x from linear space.
fn into_linear<T: Float + FromF64>(x: T) -> T
fn into_linear<T: Float + FromF64>(x: T) -> T
Convert the color component x into linear space.