# acrylic_effect

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/function-acrylic_effect/

**function** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
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.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/acrylic_brush.rs#L173)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
