Ich versuche, die von Flash CS3 bereitgestellte Funktion fl.motion.easing.bounce
zu modifizieren, um die resultierende Animation weniger zu bouncen. Ich weiß es zu schätzen, dass "weniger springen" etwas vage ist, aber ich würde jede Hilfe beim Verständnis der Funktion zu schätzen wissen.Wie ändere ich diese Beschleunigungsfunktion, um weniger zu bouncen?
Danke.
/**
* @param t Specifies the current time, between 0 and duration inclusive.
*
* @param b Specifies the initial value of the animation property.
*
* @param c Specifies the total change in the animation property.
*
* @param d Specifies the duration of the motion.
*
* @return The value of the interpolated property at the specified time.
*/
public static function easeOut(t:Number, b:Number,
c:Number, d:Number):Number
{
if ((t /= d) < (1/2.75))
return c * (7.5625 * t * t) + b;
else if (t < (2/2.75))
return c * (7.5625 * (t -= (1.5/2.75)) * t + 0.75) + b;
else if (t < (2.5/2.75))
return c * (7.5625 * (t -= (2.25/2.75)) * t + 0.9375) + b;
else
return c * (7.5625 * (t -= (2.625/2.75)) * t + 0.984375) + b;
}