mirror of
https://github.com/jneug/zeichenmaschine.git
synced 2026-04-14 14:43:33 +02:00
Animator Interface entfernt
This commit is contained in:
@@ -179,14 +179,14 @@ public class Animations {
|
|||||||
return target;
|
return target;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final <T, R> Future<T> animate( T target, int runtime, Animator<T, R> animator ) {
|
/*public static final <T, R> Future<T> animate( T target, int runtime, Animator<T, R> animator ) {
|
||||||
return animate(
|
return animate(
|
||||||
target, runtime,
|
target, runtime,
|
||||||
animator::easing,
|
animator::easing,
|
||||||
animator::interpolator,
|
animator::interpolator,
|
||||||
animator::applicator
|
animator::applicator
|
||||||
);
|
);
|
||||||
}
|
}*/
|
||||||
|
|
||||||
public static <T> Future<Animation<T>> animate( Animation<T> animation ) {
|
public static <T> Future<Animation<T>> animate( Animation<T> animation ) {
|
||||||
return TaskRunner.run(new FramerateLimitedTask() {
|
return TaskRunner.run(new FramerateLimitedTask() {
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
package schule.ngb.zm.anim;
|
|
||||||
|
|
||||||
public interface Animator<T, R> {
|
|
||||||
|
|
||||||
double easing(double t);
|
|
||||||
|
|
||||||
R interpolator(double e);
|
|
||||||
|
|
||||||
void applicator(T target, R value);
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user