GlowEffect
struct · ferroui-base · v0.5.0
struct GlowEffect
A blurred halo of a colour around the content, under it (Effector's
GlowEffect): the alpha of the content in the colour, its alpha times
intensity (clamped to 0..1), blurred by blur-radius (the blur radius
of the drop shadow effect), and the content over it.
glow(color=Gold, blur-radius=12, intensity=0.9). The graph is a
source-over composite of a shadow of the content (Glow.BlurAmount,
Glow.ShadowColor) and the content, drawn as the drop shadow effect of
the drawing contexts with no offset.
Members
color
color: crate::media::Color
The colour of the halo (default gold).
blur_radius
blur_radius: f64
The blur radius of the halo, in device independent pixels (default 12).
intensity
intensity: f64
The opacity of the halo, 0 to 1 (default 0.9).
halo_color
fn halo_color(self: &Self) -> Color
The colour of the halo: the colour with its alpha times the intensity.
drop_shadow
fn drop_shadow(self: &Self) -> ImmutableDropShadowEffect
The drop shadow effect the glow is drawn as.
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.