Table of Contents

Class EdgePulseGlowAnimation

Namespace
FlowGraph.Avalonia.Animation
Assembly
FlowGraph.Avalonia.dll

Pulsing glow effect that oscillates opacity/intensity continuously.

public class EdgePulseGlowAnimation : IAnimation
Inheritance
EdgePulseGlowAnimation
Implements
Inherited Members

Constructors

EdgePulseGlowAnimation(Edge, double, double, double, Action<Edge, double>?, double?)

Creates a new pulsing glow animation.

public EdgePulseGlowAnimation(Edge edge, double minOpacity = 0.3, double maxOpacity = 1, double frequency = 1, Action<Edge, double>? onUpdate = null, double? maxDuration = null)

Parameters

edge Edge

The edge to animate.

minOpacity double

Minimum opacity during pulse.

maxOpacity double

Maximum opacity during pulse.

frequency double

Pulse frequency in Hz (cycles per second).

onUpdate Action<Edge, double>

Callback called each frame with the edge and current opacity.

maxDuration double?

Maximum duration in seconds, or null for infinite.

Properties

CurrentOpacity

Gets the current opacity value.

public double CurrentOpacity { get; }

Property Value

double

IsComplete

Gets whether the animation has completed.

public bool IsComplete { get; }

Property Value

bool

Methods

Cancel()

Called when the animation completes or is cancelled.

public void Cancel()

Update(double)

Updates the animation with the elapsed time since the last frame.

public void Update(double deltaTime)

Parameters

deltaTime double

Time elapsed since last update in seconds.