BounceShaper

BounceShaper is a decayed group of quadratic section which creates the path a bouncing ball would follow. Each bounce does not rise as high as the bounce before it, because of the decay. This shaper also allows you to set both the number of bounces to occur in the duration. The default decay is 1/3 and the default number of bounces is 3.

BounceShaper is an emulation of a physical motion. Note that while this is useful for animation, physical motion can be better emulated by use of a particle system.

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

Constructor
BounceShaper()
BounceShaper( shapeMode )
BounceShaper( shapeMode, transition )
BounceShaper( 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
setBounces()
Sets the number of bounces to occur.
getBounces()
Returns the current number of bounces to occur.
setDecay()
Sets the decay, or how high the next bounce should rise relative to the previous bounce.
getDecay()
Returns the current bounce decay.
Implementation
f(x){
  ?
}
Related
QuadraticShaper Shaper