Trait nannou::color::encoding::TransferFn
source · pub trait TransferFn {
// Required methods
fn from_linear<T>(x: T) -> T
where T: Float;
fn into_linear<T>(x: T) -> T
where T: Float;
}
Expand description
A transfer function to and from linear space.
Required Methods§
sourcefn from_linear<T>(x: T) -> Twhere
T: Float,
fn from_linear<T>(x: T) -> Twhere
T: Float,
Convert the color component x
from linear space.
sourcefn into_linear<T>(x: T) -> Twhere
T: Float,
fn into_linear<T>(x: T) -> Twhere
T: Float,
Convert the color component x
into linear space.
Object Safety§
This trait is not object safe.