万能弹性表达式

freq = 6;
decay = 4;
n = 0;
if (numKeys > 0){
n = nearestKey(time).index;
if (key(n).time > time){

n--;
}
}
if (n > 0){
t = time - key(n).time;
amp = velocityAtTime(key(n).time - .001);
w = freq*Math.PI*2;
value + amp*(Math.sin(t*w)/Math.exp(decay*t)/w);
}
else
{
value
}

  • alipay_img
  • wechat_img
最后更新于 2024-11-25