ArithmeticCompositeEffect
struct · ferroui-base · v0.5.0
struct ArithmeticCompositeEffect
Combines two sources channel by channel as
MultiplyAmount * s1 * s2 + Source1Amount * s1 + Source2Amount * s2 + Offset
on premultiplied colours (Win2D ArithmeticCompositeEffect).
Animatable: MultiplyAmount, Source1Amount, Source2Amount, Offset.
Drawn when one of the sources is a colour source: the combination is
then a colour matrix of the other source. A factory made from one whose
sources are both images reports
CompositionEffectFactoryError::EffectTypeNotSupported.
Members
name
name: String
The name of the effect.
multiply_amount
multiply_amount: f32
The weight of the product of the sources (default 1).
source1_amount
source1_amount: f32
The weight of the first source (default 0).
source2_amount
source2_amount: f32
The weight of the second source (default 0).
offset
offset: f32
The constant added (default 0).
clamp_output
clamp_output: bool
Whether the output is clamped (stored; the drawing contexts clamp).
source1
source1: Option<GraphicsEffectSource>
The first input.
source2
source2: Option<GraphicsEffectSource>
The second input.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherFrom<ArithmeticCompositeEffect>CloneDebugStructuralPartialEqPartialEqDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.