# acrylic_effect_with_source

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

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

```rust
fn acrylic_effect_with_source(should_brush_be_opaque: bool, use_cross_fade: bool, source: AcrylicBrushBackgroundSource, tint_color: crate::media::Color, luminosity_color: crate::media::Color, fallback_color: crate::media::Color) -> (crate::rendering::composition::effects::GraphicsEffect, Vec<&'static str>)
```

[`acrylic_effect`](/docs/0.5.0/api/ferroui-base/media/function-acrylic_effect/) for a background source. The host backdrop (WinUI 2's
window acrylic) is blurred by the platform behind the window, so it is
not blurred again; the compositor cannot read it, so the luminosity and
the tint are composed over it source-over (winui-materials.md,
deviations), the host backdrop brush first, so that it shows through the
window where the brush paints.

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

## Availability

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