palette::encoding

Trait IntoLinear

source
pub trait IntoLinear<L, E> {
    // Required method
    fn into_linear(encoded: E) -> L;
}
Expand description

A transfer function to linear space.

Required Methods§

source

fn into_linear(encoded: E) -> L

Convert the color component encoded into linear space.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl IntoLinear<f32, u8> for Srgb

source§

impl IntoLinear<f64, u8> for Srgb

source§

impl<T> IntoLinear<T, T> for LinearFn

source§

impl<T> IntoLinear<T, T> for Srgb

source§

impl<T, N> IntoLinear<T, T> for GammaFn<N>
where T: Real + One + Powf + Div<Output = T>, N: Number,