InvertEffect
struct · ferroui-base · v0.5.0
struct InvertEffect
Inverts the colours of the content (Effector's InvertEffect): each
colour channel c becomes c + amount * (1 - 2 c), amount clamped to
0..1; the alpha is kept.
invert(amount=1). The graph is a linear transfer
(Transfer.RedSlope, Transfer.RedOffset, ...).
Members
amount
amount: f64
How far inverted, 0 (unchanged) to 1 (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.