FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TintEffect

    struct · ferroui-base · v0.5.0

    struct TintEffect
    

    Tints the content towards a colour (Effector's TintEffect): each colour channel multiplied by 1 - strength + strength * color, the alpha kept; strength is clamped to 0..1 and the alpha of color is not used.

    tint(color=#0F9D8E, strength=0.55). The graph is a tint effect (Tint.Color, the colour mixed with white by the strength).

    View source

    Members

    color

    color: crate::media::Color
    

    The colour (default deep sky blue).

    Source

    strength

    strength: f64
    

    How far towards the colour, 0 to 1 (default 0.55).

    Source

    tint_color

    fn tint_color(self: &Self) -> Color
    

    The colour of the tint node: white mixed with the colour by the strength, opaque.

    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.