Trait palette::encoding::FromLinear

source ·
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.

Object Safety§

This trait is not object safe.

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 Srgb

source§

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