FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ScanlineShaderEffect

    struct · ferroui-base · v0.5.0

    struct ScanlineShaderEffect
    

    Dark scan lines over the content (Effector's ScanlineShaderEffect): bands of spacing device independent pixels (clamped to 2..32) from the top of the area, the lower half of each black at the opacity strength (clamped to 0..1) times the alpha of the content, drawn source over the content.

    scanline(spacing=8, strength=0.24). An overlay shader effect masked by the content; a strength of 0 (the neutral value) leaves the content unchanged.

    View source

    Members

    spacing

    spacing: f64
    

    The height of a band, in device independent pixels (default 8).

    Source

    strength

    strength: f64
    

    The opacity of the dark half of a band, 0 to 1 (default 0.24).

    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.