Guest User

Untitled

a guest
Aug 25th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ///sc_easing_bounce_amount(amount)
  2.  
  3. var amount = argument0;
  4.  
  5. if (amount < 1 / 2.75)
  6.   return 7.5625 * amount * amount;
  7. else if (amount < 2 / 2.75)
  8. {
  9.   amount -= 1.5 / 2.75;
  10.  
  11.   return 7.5625 * amount * amount + 0.75;
  12. }
  13. else if (amount < 2.5 / 2.75)
  14. {
  15.   amount -= 2.25 / 2.75;
  16.  
  17.   return 7.5625 * amount * amount + 0.9375;
  18. }
  19.  
  20. amount -= 2.625 / 2.75;
  21.  
  22. return 7.5625 * amount * amount + 0.984375;
Advertisement
Add Comment
Please, Sign In to add comment