AnimeJ: a Javascript animation library

Class AnimeJLinearInterpolator

Object
   |
   +--AnimeJLinearInterpolator

<private> class AnimeJLinearInterpolator


Generalized linear interpolator used to interpolate the argument of a function or an object property like a style. The interpolation is linear but it is possible to specify an array of linear segments unevenly distributed in the interval [0.0, 1.0] which is the range of time (normalized). For instance the following is a way to distribute interpolation for a value from 0 to 1000 in a way that the first half the value changes linearly in the interval 0-50 and in the second half in the interval 50-1000:

[ { t: 0.0, v: 0 }, { t: 0.5, v: 50 }, { t: 1.0, v: 1000 } ]
See:

Defined in AnimeJ.js


Constructor Summary
AnimeJLinearInterpolator(<Object> obj, <String> prop, <Array> steps, <Function> conv, <String> prefix, <String> suffix)
           
 
Method Summary
 void Compute(<float> v)
           Computes a value given a time value in [0.0, 1.0]

Constructor Detail

AnimeJLinearInterpolator

AnimeJLinearInterpolator(<Object> obj, <String> prop, <Array> steps, <Function> conv, <String> prefix, <String> suffix)

Method Detail

Compute

void Compute(<float> v)

AnimeJ: a Javascript animation library

Documentation generated by JSDoc on Thu Apr 15 11:15:01 2010