AnimeJ: a Javascript animation library

Class AnimeJLinearInterpolator

Object
   |
   +--AnimeJLinearInterpolator

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 } ]
Defined in AnimeJ.js

See:


Field Summary
 Object Conversion
          
 Object Obj
          
 Object Prefix
          
 Object Prop
          
 Object Steps
          
 Object Suffix
          
 
Constructor Summary
AnimeJLinearInterpolator(<Object> obj, <String> prop, <Array> steps, <Function> conv, <String> prefix, <String> suffix)
           
 
Method Summary
 void Compute(v)
          

Field Detail

Conversion

Object Conversion

Obj

Object Obj

Prefix

Object Prefix

Prop

Object Prop

Steps

Object Steps

Suffix

Object Suffix

Constructor Detail

AnimeJLinearInterpolator

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

Method Detail

Compute

void Compute(v)

AnimeJ: a Javascript animation library

Documentation generated by JSDoc on Sat Nov 29 22:32:19 2008