FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SaturationEffect

    struct · ferroui-base · v0.5.0

    struct SaturationEffect
    

    Changes the saturation of the content (Effector's SaturationEffect): 0 is grey, 1 unchanged, up to 2.5 more saturated (clamped).

    saturation(saturation=1.5). The graph is a saturation effect (Saturation.Saturation).

    View source

    Members

    saturation

    saturation: f64
    

    The saturation, 0 to 2.5 (default 1).

    Source

    MAXIMUM

    const MAXIMUM: f64
    

    The largest saturation.

    Source

    matrix

    fn matrix(self: &Self) -> ColorMatrix
    

    The colour matrix of the effect.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Default
    • CustomEffect

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.