Hex1bAnimator
Namespace: Hex1b.Animation
Assembly: Hex1b.dll
Base class for animations that progress over a duration with easing. Provides Start/Pause/Resume/Reset lifecycle and Advance(elapsed) for ticking.
public abstract class Hex1bAnimatorInheritance
Object → Hex1bAnimator
Properties
Duration
Duration of the animation.
Returns: TimeSpan
public TimeSpan Duration { get; set; }EasingFunction
Easing function applied to raw progress. Defaults to Linear.
Returns: Func<Double, Double>
public Func<double, double> EasingFunction { get; set; }IsCompleted
Whether the animation has completed (progress reached 1.0 and not repeating).
Returns: Boolean
public bool IsCompleted { get; }IsPaused
Whether the animation is paused.
Returns: Boolean
public bool IsPaused { get; }IsRunning
Whether the animation is currently running (not paused, not completed).
Returns: Boolean
public bool IsRunning { get; }Progress
Eased progress (0..1).
Returns: Double
public double Progress { get; }Repeat
Whether the animation repeats after completing.
Returns: Boolean
public bool Repeat { get; set; }Reverse
Whether the animation reverses direction on each cycle.
Returns: Boolean
public bool Reverse { get; set; }Methods
Pause()
Pauses the animation at its current progress.
public void Pause()Reset()
Resets the animation to the beginning without starting it.
public void Reset()Restart()
Restarts the animation (equivalent to Reset + Start).
public void Restart()Resume()
Resumes a paused animation.
public void Resume()Start()
Starts or restarts the animation from the beginning.
public void Start()