Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I started to involve myself with easing functions (Flash AS3), came about in trying to understand TweenLite and Robert Penner's website: http://www.robertpenner.com/easing/

The question I have is what is the math basis for these functions. I've seen other sites modify the functions to create custom easing function.

share|improve this question
I think it's rather well and extensively explained in the pdf linked on Robert Penners site: robertpenner.com/easing/penner_chapter7_tweening.pdf –  bummzack Jan 1 '11 at 11:09

2 Answers 2

Well tweening in the general case is just parametric movement (specifically, defining a function f(x) where x can be 0..1 for position/rotation/scale/whatever) with a modifier on the parametric value you pass in. The modifier also has the range 0..1.

If you plot the algorithm on a graph you'll get something that starts at 0, ends at 1, and the slope of the curve defines the velocity at that point in time.

If you want the math for the easing functions themselves, check this out: http://iphonedevelopment.blogspot.com/2010/12/more-animation-curves-than-you-can.html

share|improve this answer

I've written a primer on interpolation, which may be of some use - http://iki.fi/sol/interpolation/

Another great resource is this interactive tool: http://www.gizma.com/easing/

share|improve this answer
That first link is very informative. Good article. –  bummzack Jan 5 '11 at 12:10
@JariKomppa I have to ask, where does the (3-2(x)) come from? And why does x have parentheses? Doesn't it always result in 3-(2*x)? –  Sidar Oct 14 '12 at 23:02
@Sidar Can't remember offhand where the formula comes from, but basically it's a special case spline (which leads to a simple formula). The (x) is due to the macro form - 'x' may be anything, for example '3+7', which would lead to (3-2*(3+7)) and not (3-2*3+7). –  Jari Komppa Oct 23 '12 at 9:57
@JariKomppa aight, thanks. –  Sidar Oct 23 '12 at 13:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.