# DissolveTransitionEffect

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

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

```rust
struct DissolveTransitionEffect
```

Dissolves from one page to another (Effector's compiz-style dissolve):
a frontier spreads from the point (`center-x`, `center-y`) of the area
(fractions of its width and height, clamped to 0..1) as `progress` goes
from 0 (`from-page`) to 1 (`to-page`), and crosses each pixel when it
reaches the luminance of `pattern` there, with a soft edge and a glow of
`glow-color` along it. The pages and the pattern are stretched over the
area; without a pattern the dissolve is a round wipe from the point.

`dissolve-transition(progress=0.5, center-x=0.5, center-y=0.5,
glow-color=#FF942E)`, the images set from code. An overlay shader effect
with three children, drawn source over the content; a progress of 0
without images (the neutral value) leaves the content unchanged.

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

## Members

- [`from_page`](#struct_field-from_page)
- [`to_page`](#struct_field-to_page)
- [`pattern`](#struct_field-pattern)
- [`progress`](#struct_field-progress)
- [`center_x`](#struct_field-center_x)
- [`center_y`](#struct_field-center_y)
- [`glow_color`](#struct_field-glow_color)

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

### from_page

```rust
from_page: super::super::EffectImage
```

The page the transition leaves.

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

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

### to_page

```rust
to_page: super::super::EffectImage
```

The page the transition comes to.

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

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

### pattern

```rust
pattern: super::super::EffectImage
```

The pattern of the dissolve: the frontier crosses a pixel when it
reaches the luminance of the pattern there.

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

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

### progress

```rust
progress: f64
```

How far the transition is, 0 to 1 (default 0.5).

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

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

### center_x

```rust
center_x: f64
```

The horizontal position of the point the frontier spreads from, 0
(left) to 1 (right) (default 0.5).

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

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

### center_y

```rust
center_y: f64
```

The vertical position of that point, 0 (top) to 1 (bottom) (default
0.5).

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

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

### glow_color

```rust
glow_color: crate::media::Color
```

The colour of the glow along the frontier (default #FF942E, Effector's
orange).

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

## 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/).
