TintEffect
struct · ferroui-base · v0.5.0
struct TintEffect
Tints the content towards a colour (Effector's TintEffect): each colour
channel multiplied by 1 - strength + strength * color, the alpha kept;
strength is clamped to 0..1 and the alpha of color is not used.
tint(color=#0F9D8E, strength=0.55). The graph is a tint effect
(Tint.Color, the colour mixed with white by the strength).
Members
color
color: crate::media::Color
The colour (default deep sky blue).
strength
strength: f64
How far towards the colour, 0 to 1 (default 0.55).
tint_color
fn tint_color(self: &Self) -> Color
The colour of the tint node: white mixed with the colour by the strength, opaque.
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.