[−][src]Trait amethyst_rendy::palette::encoding::TransferFn
A transfer function to and from linear space.
Required methods
fn from_linear<T>(x: T) -> T where
T: Float,
T: Float,
Convert the color component x
from linear space.
fn into_linear<T>(x: T) -> T where
T: Float,
T: Float,
Convert the color component x
into linear space.
Implementors
impl TransferFn for LinearFn
[src]
fn into_linear<T>(x: T) -> T where
T: Float,
[src]
T: Float,
fn from_linear<T>(x: T) -> T where
T: Float,
[src]
T: Float,
impl TransferFn for Srgb
[src]
fn into_linear<T>(x: T) -> T where
T: Float,
[src]
T: Float,
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,
fn into_linear<T>(x: T) -> T where
T: Float,
[src]
T: Float,
fn from_linear<T>(x: T) -> T where
T: Float,
[src]
T: Float,