
org.sikuli.basics.AnimatorQuarticEase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sikulixapi Show documentation
Show all versions of sikulixapi Show documentation
... for visual testing and automation
/*
* Copyright (c) 2010-2016, Sikuli.org, sikulix.com
* Released under the MIT License.
*
*/
package org.sikuli.basics;
public class AnimatorQuarticEase extends AnimatorTimeValueFunction {
public AnimatorQuarticEase(float beginVal, float endVal, long totalTime) {
super(beginVal, endVal, totalTime);
}
@Override
public float getValue(long t) {
if (t > _totalTime) {
return _endVal;
}
double t1 = (double) t / _totalTime;
return (float) (_beginVal + (_endVal - _beginVal) * t1 * t1 * t1 * t1);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy