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; }
@Override public Action copy() { FadeTo fadeTo = $(toAlpha, duration); if (interpolator != null) fadeTo.setInterpolator(interpolator.copy()); return fadeTo; }