Logo Search packages:      
Sourcecode: libjgoodies-animation-java version File versions  Download package

static AnimationFunction com::jgoodies::animation::AnimationFunctions::linearColors ( long  duration,
Color[]  colors,
float[]  keyTimes 
) [inline, static]

Creates an AnimationFunction that maps times to instances of Color. The mapping is interpolated from an array of Colors using an array of key times.

duration the duration of this animation function
colors the colors to interpolate.
keyTimes an array of key times used to distribute the result values over the time.
An AnimationFunction that maps times to sRGB colors. This mapping is defined by an arry of Color values and a corresponding array of key times that is used to interpolate sub-AnimationFunction for the red, green, blue and alpha values.

Definition at line 247 of file AnimationFunctions.java.

        return new ColorFunction(duration, colors, keyTimes);

Generated by  Doxygen 1.6.0   Back to index