Class AnimeJInterp
Object
|
+--AnimeJInterp
- class
AnimeJInterp
This class contains helpers for building interpolation tasks. It simply uses the
AnimeJLinearInterpolator in several different ways to ease common tasks. You can still
define your own interpolators. Apologize for interpolator names but they are conceived
to be short.
Defined in AnimeJ.js
Method Summary |
<static> Object
|
alpha(<int> time, tstep, <Object> obj, <Object> fromOrSteps, <float> to)
Interpolates the alpha of an element in the appropriate way for the current browser.
|
<static> Object
|
ffa(<int> time, tstep, <Function> fun, <Array> fromOrSteps, <Array> to)
Interpolates an array of floats and pass it to a funciton (ffa: function float array).
|
<static> Object
|
ffv(<int> time, tstep, <Function> fun, <Object> fromOrSteps, <float> to)
Interpolates a float value and pass it to a funciton (ffv: function float value).
|
<static> Object
|
fia(<int> time, tstep, <Function> fun, <Array> fromOrSteps, <Array> to)
Interpolates an array of integers and pass it to a funciton (fia: function int array).
|
<static> Object
|
fiv(<int> time, tstep, <Function> fun, <Object> fromOrSteps, <int> to)
Interpolates an integer value and pass it to a funciton (fiv: function integer value).
|
<static> Object
|
px(<int> time, tstep, <Object> obj, prop, <Object> fromOrSteps, <int> to)
Interpolates a pixel quantity (i.e.
|
AnimeJInterp
AnimeJInterp()
alpha
<static> Object alpha(<int> time, tstep, <Object> obj, <Object> fromOrSteps, <float> to)
Interpolates the alpha of an element in the appropriate way for the current browser.
Parameters:
time
- Duration of the transition in milliseconds.
obj
- The object holding the alpha property to be changed.
fromOrSteps
- If a number between 0.0 (fully transparent) and 1.0 (totally opaque) is provided, this is considered the starting value; otherwise an array of steps is assumed as expected by AnimeJLinearInterpolator.
to
- If specified (i.e. the fromOrSteps argument is an integer) it is considered the target value for the interpolation (should be a value in the range [0.0, 1.0].
tsteps
- Frequency (expressed in ms for an interval) at which the property should be updated or the function called.
ffa
<static> Object ffa(<int> time, tstep, <Function> fun, <Array> fromOrSteps, <Array> to)
Interpolates an array of floats and pass it to a funciton (ffa: function float array).
Parameters:
time
- Duration of the transition in milliseconds.
fun
- Function to be invoked with the current value.
fromOrSteps
- If the to argument is given this is considered the starting value, otherwise an array of steps is assumed as expected by AnimeJLinearInterpolator.
to
- If specified (i.e. the fromOrSteps argument is considered to be an array of float) it is considered the target value for the interpolation.
tsteps
- Frequency (expressed in ms for an interval) at which the property should be updated or the function called.
ffv
<static> Object ffv(<int> time, tstep, <Function> fun, <Object> fromOrSteps, <float> to)
Interpolates a float value and pass it to a funciton (ffv: function float value).
Parameters:
time
- Duration of the transition in milliseconds.
fun
- Function to be invoked with the current value.
fromOrSteps
- If a number is given this is considered the starting value, otherwise an array of steps is assumed as expected by AnimeJLinearInterpolator.
to
- If specified (i.e. the fromOrSteps argument is a float) it is considered the target value for the interpolation.
tsteps
- Frequency (expressed in ms for an interval) at which the property should be updated or the function called.
fia
<static> Object fia(<int> time, tstep, <Function> fun, <Array> fromOrSteps, <Array> to)
Interpolates an array of integers and pass it to a funciton (fia: function int array).
Parameters:
time
- Duration of the transition in milliseconds.
fun
- Function to be invoked with the current value.
fromOrSteps
- If the to argument is given this is considered the starting value, otherwise an array of steps is assumed as expected by AnimeJLinearInterpolator.
to
- If specified (i.e. the fromOrSteps argument is considered to be an array of int) it is considered the target value for the interpolation.
tsteps
- Frequency (expressed in ms for an interval) at which the property should be updated or the function called.
fiv
<static> Object fiv(<int> time, tstep, <Function> fun, <Object> fromOrSteps, <int> to)
Interpolates an integer value and pass it to a funciton (fiv: function integer value).
Parameters:
time
- Duration of the transition in milliseconds.
fun
- Function to be invoked with the current value.
fromOrSteps
- If a number is given this is considered the starting value, otherwise an array of steps is assumed as expected by AnimeJLinearInterpolator.
to
- If specified (i.e. the fromOrSteps argument is an integer) it is considered the target value for the interpolation.
tsteps
- Frequency (expressed in ms for an interval) at which the property should be updated or the function called.
px
<static> Object px(<int> time, tstep, <Object> obj, prop, <Object> fromOrSteps, <int> to)
Interpolates a pixel quantity (i.e. integer and appends px at the end).
Parameters:
time
- Duration of the transition in milliseconds.
obj
- Object to set or function to invoke to set the value.
fromOrSteps
- If a number is given this is considered the starting value, otherwise an array of steps is assumed as expected by AnimeJLinearInterpolator.
to
- If specified (i.e. the fromOrSteps argument is an integer) it is considered the target value for the interpolation.
tsteps
- Frequency (expressed in ms for an interval) at which the property should be updated or the function called.
Documentation generated by
JSDoc on Thu Apr 15 11:14:59 2010