FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PixelateEffect

    struct · ferroui-base · v0.5.0

    struct PixelateEffect
    

    Pixelates the content (Effector's PixelateEffect): a grid of square cells of cell-size device independent pixels from the top left corner of the area, each the colour of the pixel at its centre. cell-size is clamped to 0..64; a cell is at least one device pixel, so 0 (the neutral value) leaves the content unchanged.

    pixelate(cell-size=10). A content-sampling shader effect with a sample radius of 64 (the largest cell).

    View source

    Members

    cell_size

    cell_size: f64
    

    The side of a cell, in device independent pixels (default 10).

    Source

    MAXIMUM_CELL_SIZE

    const MAXIMUM_CELL_SIZE: f64
    

    The largest side of a cell.

    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.