Class SelectionPulseAnimation
Animates a selection highlight pulse effect.
public class SelectionPulseAnimation : IAnimation
- Inheritance
-
SelectionPulseAnimation
- Implements
- Inherited Members
Constructors
SelectionPulseAnimation(double, Action<double>?, Action?)
Creates a new selection pulse animation.
public SelectionPulseAnimation(double duration = 0.4, Action<double>? onUpdate = null, Action? onComplete = null)
Parameters
durationdoubleTotal duration in seconds.
onUpdateAction<double>Callback with current intensity (0-1).
onCompleteActionCallback when animation completes.
Properties
CurrentIntensity
Gets the current pulse intensity (0-1).
public double CurrentIntensity { 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.