BackShaper

BackShaper is a modified cubic function which provides anticipation. Anticipation is often used in animation to create a wind-up and follow through effect. A backwards motion occurs before the forward action is executed. The default is an anticipation of 0.1, or 10% of the motion from 0 to 1.

BackShaper is capable of producing values outside of the 0 to 1 range, if you are working in a domain which requires 0 to 1, be sure to use clamp().

May be referred to as Tween.BACK for use in setEasing().

Constructor
BackShaper()
BackShaper( shapeMode )
BackShaper( shapeMode, transition )
BackShaper( shapeMode, transitionX, transitionY )
Parameters
shapeMode
int: a shaping mode such as Shaper.SIGMOID
transitionX
float: sets the transition point in the x dimension for SIGMOID and SEAT
transitionY
float: sets the transition point in the f(x) dimension, for skewing the transition
Methods
setAnticipation()
Sets the anticipation, how far back the shape should go before moving forward
getAnticipation()
Returns the amount of anticipation.
Implementation
f(x){
  x*x*( (s+1)*x - s )
}
Related
Shaper