# luminosity_color

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

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

```rust
fn luminosity_color(tint_color: crate::media::Color, luminosity_opacity: Option<f64>) -> crate::media::Color
```

`GetLuminosityColor`: the colour of the luminosity blend for a tint
colour whose alpha is the tint opacity the user set. With a luminosity
opacity it is the tint colour at that opacity; without one, the tint
colour with its value clamped to 12.5 %..96.5 %, at an opacity mapped
from the tint opacity onto 15 %..103 % (at most 100 %).

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

## Availability

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