Browse Source

Added Animation.IsActive.

master
Sander Schobers 2 years ago
parent
commit
b434a71f00
  1. 3
      animation.go

3
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 {

Loading…
Cancel
Save