# TintEffect

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/effects/library/struct-tinteffect/

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

```rust
struct TintEffect
```

Tints the content towards a colour (Effector's `TintEffect`): each colour
channel multiplied by `1 - strength + strength * color`, the alpha kept;
`strength` is clamped to 0..1 and the alpha of `color` is not used.

`tint(color=#0F9D8E, strength=0.55)`. The graph is a tint effect
(`Tint.Color`, the colour mixed with white by the strength).

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

## Members

- [`color`](#struct_field-color)
- [`strength`](#struct_field-strength)
- [`tint_color`](#function-tint_color)
- [`matrix`](#function-matrix)

<a id="struct_field-color"></a>

### color

```rust
color: crate::media::Color
```

The colour (default deep sky blue).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/effects/library.rs#L127)

<a id="struct_field-strength"></a>

### strength

```rust
strength: f64
```

How far towards the colour, 0 to 1 (default 0.55).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/effects/library.rs#L129)

<a id="function-tint_color"></a>

### tint_color

```rust
fn tint_color(self: &Self) -> Color
```

The colour of the tint node: white mixed with the colour by the
strength, opaque.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/effects/library.rs#L141)

<a id="function-matrix"></a>

### matrix

```rust
fn matrix(self: &Self) -> ColorMatrix
```

The colour matrix of the effect.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/effects/library.rs#L148)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Default`
- [`CustomEffect`](/docs/0.5.0/api/ferroui-base/media/effects/trait-customeffect/)

## Availability

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