GrayscaleEffect
struct · ferroui-base · v0.5.0
struct GrayscaleEffect
Turns the content grey (Effector's GrayscaleEffect): the saturation
matrix at 1 - amount, amount clamped to 0..1.
grayscale(amount=1). The graph is a saturation effect
(Grayscale.Saturation).
Members
amount
amount: f64
How grey, 0 (unchanged) to 1 (grey) (default 1).
matrix
fn matrix(self: &Self) -> ColorMatrix
The colour matrix of the effect.
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.