InColorSpace

Trait InColorSpace 

Source
pub trait InColorSpace: Sized {
    // Required method
    fn in_color_space(self, color_space: InterpolationColorSpace) -> Self;

    // Provided methods
    fn in_oklaba(self) -> Self { ... }
    fn in_oklch(self) -> Self { ... }
    fn in_oklch_long(self) -> Self { ... }
    fn in_srgb(self) -> Self { ... }
    fn in_linear_rgb(self) -> Self { ... }
}
Expand description

Set the color space used for interpolation.

Required Methods§

Source

fn in_color_space(self, color_space: InterpolationColorSpace) -> Self

Interpolate in the given color_space.

Provided Methods§

Source

fn in_oklaba(self) -> Self

Interpolate in OKLab space.

Source

fn in_oklch(self) -> Self

Interpolate in OKLCH space (short hue path).

Source

fn in_oklch_long(self) -> Self

Interpolate in OKLCH space (long hue path).

Source

fn in_srgb(self) -> Self

Interpolate in sRGB space.

Source

fn in_linear_rgb(self) -> Self

Interpolate in linear sRGB space.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§