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).
Members
cell_size
cell_size: f64
The side of a cell, in device independent pixels (default 10).
MAXIMUM_CELL_SIZE
const MAXIMUM_CELL_SIZE: f64
The largest side of a cell.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneDebugStructuralPartialEqPartialEqDefaultCustomEffect
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.