Trait nannou::color::encoding::TransferFn [−][src]
pub trait TransferFn { pub fn from_linear<T>(x: T) -> T
where
T: Float; pub fn into_linear<T>(x: T) -> T
where
T: Float; }
A transfer function to and from linear space.
Required methods
pub fn from_linear<T>(x: T) -> T where
T: Float,
[src]
T: Float,
Convert the color component x
from linear space.
pub fn into_linear<T>(x: T) -> T where
T: Float,
[src]
T: Float,
Convert the color component x
into linear space.
Implementors
impl TransferFn for LinearFn
[src]
pub fn into_linear<T>(x: T) -> T where
T: Float,
[src]
T: Float,
pub fn from_linear<T>(x: T) -> T where
T: Float,
[src]
T: Float,
impl TransferFn for Srgb
[src]
pub fn into_linear<T>(x: T) -> T where
T: Float,
[src]
T: Float,
pub fn from_linear<T>(x: T) -> T where
T: Float,
[src]
T: Float,
impl<N> TransferFn for GammaFn<N> where
N: Number,
[src]
N: Number,
pub fn into_linear<T>(x: T) -> T where
T: Float,
[src]
T: Float,
pub fn from_linear<T>(x: T) -> T where
T: Float,
[src]
T: Float,