[][src]Enum prisma::HsiOutOfGamutMode

pub enum HsiOutOfGamutMode {
    Clip,
    Preserve,
    SimpleRescale,
    SaturationRescale,
}

Defines methods for handling out-of-gamut transformations from Hsi to Rgb

Variants

Clip

Simply clamp each channel to [0,1]

Preserve

Even if the value is out-of-gamut, return the raw, out-of-range Rgb value

SimpleRescale

Rescale all components back proportionally such that the color is valid

SaturationRescale

Rescale the saturation using similar logic to eHsi to put the color back in range

Trait Implementations

impl Clone for HsiOutOfGamutMode[src]

impl Copy for HsiOutOfGamutMode[src]

impl Debug for HsiOutOfGamutMode[src]

impl Eq for HsiOutOfGamutMode[src]

impl PartialEq<HsiOutOfGamutMode> for HsiOutOfGamutMode[src]

impl StructuralEq for HsiOutOfGamutMode[src]

impl StructuralPartialEq for HsiOutOfGamutMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.