# tint_opacity_modifier

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

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

```rust
fn tint_opacity_modifier(tint_color: crate::media::Color) -> f64
```

`GetTintOpacityModifier`: how much of the tint opacity a colour keeps.
Pure white keeps 45 %, pure black 85 %, grey 90 %; the suppression grows
linearly with the distance of the value from 50 % and shrinks as the
saturation grows.

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

## Availability

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