示例#1
0
 public static FadeTo $(float alpha, float duration) {
   FadeTo action = pool.obtain();
   action.toAlpha = Math.min(Math.max(alpha, 0.0f), 1.0f);
   action.duration = duration;
   action.invDuration = 1 / duration;
   return action;
 }
示例#2
0
 @Override
 public Action copy() {
   FadeTo fadeTo = $(toAlpha, duration);
   if (interpolator != null) fadeTo.setInterpolator(interpolator.copy());
   return fadeTo;
 }