pub struct Opacity(/* private fields */);Expand description
Surface-global fade coverage in [0, 1] — how present the whole frosted surface is,
distinct from Tint’s alpha (which is the film mix, blur vs tint color) and from
BlurStrength (the radius). It scales the composite’s final blend weight: 1.0 is the
surface fully composited (the default — every existing caller and golden is unchanged), 0.0
leaves the destination untouched (the surface absent), and a fractional value blends the
frosted result over the destination by that factor. A consumer animating a surface in/out
(a modal scrim fading with its dialog) drives this per frame.
Two-sided clamp [0, 1] (unlike BlurStrength/CornerRadius, which clamp only the
lower bound) — the precedent is LinearRgba’s alpha. Non-finite input falls back to 1.0
(fully present, behavior-preserving), not 0.0: a NaN propagates through f32::clamp,
and a silently-invisible surface is a worse failure than a silently-opaque one.