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]

Convert the color component x from linear space.

pub fn into_linear<T>(x: T) -> T where
    T: Float
[src]

Convert the color component x into linear space.

Loading content...

Implementors

impl TransferFn for LinearFn[src]

impl TransferFn for Srgb[src]

impl<N> TransferFn for GammaFn<N> where
    N: Number
[src]

Loading content...