pub trait FromLinear<L, E> {
    // Required method
    fn from_linear(linear: L) -> E;
}
Expand description

A transfer function from linear space.

Required Methods§

source

fn from_linear(linear: L) -> E

Convert the color component linear from linear space.

Implementors§

source§

impl FromLinear<f32, u8> for Srgb

source§

impl FromLinear<f64, u8> for Srgb

source§

impl<T> FromLinear<T, T> for LinearFn

source§

impl<T> FromLinear<T, T> for Srgbwhere T: Real + Powf + MulSub + Arithmetics + PartialCmp + Clone, T::Mask: LazySelect<T>,

source§

impl<T, N> FromLinear<T, T> for GammaFn<N>where T: Real + Powf, N: Number,