Methode um mehrere Animationen im ShapesLayer zu starten

This commit is contained in:
ngb
2022-07-25 17:41:01 +02:00
parent aceb79c44f
commit 0100a3f574

View File

@@ -116,6 +116,14 @@ public class ShapesLayer extends Layer {
anim.start();
}
public void play( Animation<? extends Shape>... anims ) {
for( Animation<? extends Shape> anim: anims ) {
this.animations.add(anim);
anim.start();
}
}
public <S extends Shape> void play( Animation<S> anim, int runtime ) {
play(anim, runtime, Easing.DEFAULT_EASING);
}