From b434a71f0010fab308c8ab38e39b28edd4adfa59 Mon Sep 17 00:00:00 2001 From: Sander Schobers Date: Sat, 23 May 2020 08:20:20 +0200 Subject: [PATCH] Added Animation.IsActive. --- animation.go | 3 +++ 1 file changed, 3 insertions(+) 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 {