acrylic_effect
function · ferroui-base · v0.5.0
fn acrylic_effect(should_brush_be_opaque: bool, use_cross_fade: bool, tint_color: crate::media::Color, luminosity_color: crate::media::Color, fallback_color: crate::media::Color) -> (crate::rendering::composition::effects::GraphicsEffect, Vec<&'static str>)
The effect of WinUI's acrylic ("shadow-friendly luminosity-based
recipe"): an opaque tint with noise, or the backdrop over the opaque
fallback colour, blurred by 30 (with hard edges), its luminosity taken
from the luminosity colour, its colour from the tint, with noise; with
use_cross_fade, cross-faded with the fallback colour. Returns the
effect and its animatable properties.
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.