Trait empfindung::ToLab

source ·
pub trait ToLab {
    fn to_lab(&self) -> (f32, f32, f32);
}
Expand description

Object which can be converted to L*a*\b* colour representation.

Required Methods§

Returns L*, a* and b* coordinates of a colour.

Implementations on Foreign Types§

Assumes an sRGB colour and converts it into L*a*\b*.

Assumes an sRGB colour and converts it into L*a*\b*.

Assumes a grey colour in sRGB colour and converts it into L*a*\b*.

This is faster than converting from a (r, g, b) colour so if it’s known that the colour is grey (that is, r == g == b), using Gray type is preferable for performance.

Implementors§