# BurningFlameShaderEffect

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

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

```rust
struct BurningFlameShaderEffect
```

A flame that burns the content (Effector's `BurningFlameShaderEffect`,
the burn-away button): from the ignition point (`ignition-x`,
`ignition-y`, normalized, clamped to 0..1) a plume rises to `flame-height`
of the area (clamped to 0.18..0.95), its waves moved by `flame-phase`
(radians, a period of 10 pi), as strong as `burn-amount` (0 to 1) plus a
little while pressed; the content under it is moved by up to `distortion`
device independent pixels (clamped to 0..18), coloured from `ember-color`
to `core-color` where it is hot, lit by `glow-strength` (0..1) and darkened
by smoke (`smoke-strength`, 0..0.8). The moved content is sampled clamped
to the area and composed over the content masked by it, so the top edge
keeps its content and nothing burns beyond the coverage of the content.

`burning-flame(burn-amount=0.8, flame-phase=1.2, ignition-x=0.5,
ignition-y=0.68)`. A content-sampling shader effect with a sample radius
of 21; without burning and not pressed (the default and the neutral
value) the content is unchanged. [`InteractiveBurningFlameEffect`](/docs/0.5.0/api/ferroui-base/media/effects/library/struct-interactiveburningflameeffect/) ignites
it where the pointer is pressed and lets it burn down after the release.

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

## Members

- [`ignition_x`](#struct_field-ignition_x)
- [`ignition_y`](#struct_field-ignition_y)
- [`burn_amount`](#struct_field-burn_amount)
- [`flame_phase`](#struct_field-flame_phase)
- [`is_pressed`](#struct_field-is_pressed)
- [`flame_height`](#struct_field-flame_height)
- [`distortion`](#struct_field-distortion)
- [`glow_strength`](#struct_field-glow_strength)
- [`smoke_strength`](#struct_field-smoke_strength)
- [`core_color`](#struct_field-core_color)
- [`ember_color`](#struct_field-ember_color)
- [`SAMPLE_RADIUS`](#assoc_const-sample_radius)
- [`PHASE_PERIOD`](#assoc_const-phase_period)

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

### ignition_x

```rust
ignition_x: f64
```

The horizontal position of the ignition, 0 (left) to 1 (right)
(default 0.5).

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

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

### ignition_y

```rust
ignition_y: f64
```

The vertical position of the ignition, 0 (top) to 1 (bottom)
(default 0.68).

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

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

### burn_amount

```rust
burn_amount: f64
```

How strongly it burns, 0 to 1 (default 0).

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

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

### flame_phase

```rust
flame_phase: f64
```

The phase of the waves of the flame, in radians (default 0).

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

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

### is_pressed

```rust
is_pressed: bool
```

Whether the pointer is pressed (default `false`).

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

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

### flame_height

```rust
flame_height: f64
```

How far up the flame reaches, a fraction of the height (default 0.72).

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

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

### distortion

```rust
distortion: f64
```

How far the flame moves the content, in device independent pixels
(default 8).

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

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

### glow_strength

```rust
glow_strength: f64
```

How brightly the flame lights the content, 0 to 1 (default 0.58).

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

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

### smoke_strength

```rust
smoke_strength: f64
```

How much smoke darkens the content, 0 to 0.8 (default 0.24).

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

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

### core_color

```rust
core_color: crate::media::Color
```

The colour of the hot core (default #FFD36B).

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

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

### ember_color

```rust
ember_color: crate::media::Color
```

The colour of the embers (default #FF5B1F).

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

<a id="assoc_const-sample_radius"></a>

### SAMPLE_RADIUS

```rust
const SAMPLE_RADIUS: f64
```

How far the program moves the content at most, in device independent
pixels: the length of the largest move sideways (the largest
distortion, 18) and up (7.5 times 1.25), rounded up (#580).

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

<a id="assoc_const-phase_period"></a>

### PHASE_PERIOD

```rust
const PHASE_PERIOD: f64
```

The period of the phase: 10 pi, a whole number of periods of each
wave of the flame (5.8, 7.4 and 9.6 are 29, 37 and 48 fifths).

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

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