Shaping provides shaping functions to interpolate a value. These are useful for easing and transitions.
Bounce in, adapted from Robert Penner's easing functions.
a value between 0 to 1
the value to shape, default is 1
Bounce in-out, adapted from Robert Penner's easing functions.
a value between 0 to 1
the value to shape, default is 1
Bounce out, adapted from Robert Penner's easing functions.
a value between 0 to 1
the value to shape, default is 1
Circular in, adapted from Robert Penner's easing functions.
a value between 0 to 1
the value to shape, default is 1
Circular in-out, adapted from Robert Penner's easing functions.
a value between 0 to 1
the value to shape, default is 1
Circular out, adapted from Robert Penner's easing functions.
a value between 0 to 1
the value to shape, default is 1
Step function is a simple jump from 0 to 1 at a specific Pt in time.
a value between 0 to 1
the value to shape, default is 1
usually a value between 0 to 1, which specify the Pt to "jump". Default is 0.5 which is in the middle.
A faster way to approximate cosine ease in-out using Blinn-Wyvill Approximation. Adapated from Golan Levin's polynomial shaping.
a value between 0 to 1
the value to shape, default is 1
Cubic bezier curve. This reuses the bezier functions in Curve class.
a value between 0 to 1
the value to shape, default is 1
Cubic in, adapted from Robert Penner's easing functions.
a value between 0 to 1
the value to shape, default is 1
Cubic in-out, adapted from Robert Penner's easing functions.
a value between 0 to 1
the value to shape, default is 1
Cubic out, adapted from Robert Penner's easing functions.
a value between 0 to 1
the value to shape, default is 1
Elastic in, adapted from Robert Penner's easing functions.
a value between 0 to 1
the value to shape, default is 1
elastic parmeter between 0 to 1. The lower the number, the more elastic it will be. Default is 0.7.
Elastic in-out, adapted from Robert Penner's easing functions.
a value between 0 to 1
the value to shape, default is 1
elastic parmeter between 0 to 1. The lower the number, the more elastic it will be. Default is 0.6.
Elastic out, adapted from Robert Penner's easing functions.
a value between 0 to 1
the value to shape, default is 1
elastic parmeter between 0 to 1. The lower the number, the more elastic it will be. Default is 0.7.
Exponential ease in, adapted from Golan Levin's polynomial shapers.
a value between 0 to 1
the value to shape, default is 1
a value between 0 to 1 to control the curve. Default is 0.25.
Exponential ease out, adapted from Golan Levin's polynomial shapers.
a value between 0 to 1
the value to shape, default is 1
a value between 0 to 1 to control the curve. Default is 0.25.
Linear mapping.
a value between 0 to 1
the value to shape, default is 1
Logistic sigmoid, adapted from Golan Levin's shaping function.
a value between 0 to 1
the value to shape, default is 1
a parameter between 0 to 1 to control the steepness of the curve. Higher is steeper. Default is 0.7.
Quadratic bezier curve, adapted from Golan Levin's shaping functions.
a value between 0 to 1
the value to shape, default is 1
Quadratic in, adapted from Robert Penner's easing functions.
a value between 0 to 1
the value to shape, default is 1
Quadratic in-out, adapted from Robert Penner's easing functions.
a value between 0 to 1
the value to shape, default is 1
Quadratic out, adapted from Robert Penner's easing functions.
a value between 0 to 1
the value to shape, default is 1
Give a Pt, draw a quadratic curve that will pass through that Pt as closely as possible. Adapted from Golan Levin's shaping functions.
a value between 0 to 1
the value to shape, default is 1
Exponential seat curve, adapted from Golan Levin's shaping functions.
a value between 0 to 1
the value to shape, default is 1
a parameter between 0 to 1 to control the steepness of the curve. Higher is steeper. Default is 0.5.
Sigmoid curve changes its shape adapted from the input value, but always returns a value between 0 to 1.
a value between 0 to 1
the value to shape, default is 1
the larger the value, the "steeper" the curve will be. Default is 10.
Sinuous in, adapted from Robert Penner's easing functions.
a value between 0 to 1
the value to shape, default is 1
Sinuous in-out, adapted from Robert Penner's easing functions.
a value between 0 to 1
the value to shape, default is 1
Sinuous out, adapted from Robert Penner's easing functions.
a value between 0 to 1
the value to shape, default is 1
Convert any shaping functions into a series of steps.
the original shaping function
the number of steps
a value between 0 to 1
the value to shape, default is 1
optional paramters to pass to original function