Class EdgePulseGlowAnimation
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
edgeEdgeThe edge to animate.
minOpacitydoubleMinimum opacity during pulse.
maxOpacitydoubleMaximum opacity during pulse.
frequencydoublePulse frequency in Hz (cycles per second).
onUpdateAction<Edge, double>Callback called each frame with the edge and current opacity.
maxDurationdouble?Maximum duration in seconds, or null for infinite.
Properties
CurrentOpacity
Gets the current opacity value.
public double CurrentOpacity { get; }
Property Value
IsComplete
Gets whether the animation has completed.
public bool IsComplete { get; }
Property Value
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
deltaTimedoubleTime elapsed since last update in seconds.