diff --git a/animation.go b/animation.go index 41f5b0d..cfe09d4 100644 --- a/animation.go +++ b/animation.go @@ -67,6 +67,9 @@ func (a *Animation) Pause() { a.active = false } +// IsActive returns true when the animation is started (and false when it either was never started or paused) +func (a *Animation) IsActive() bool { return a.active } + // Start starts the animation (when paused or not started yet). func (a *Animation) Start() { if a.active {