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

static AnimationFunction com::jgoodies::animation::animations::BasicTextAnimation::defaultScaleColorFunction ( long  duration,
Color  baseColor 
) [inline, static]

Creates and answers the animation function for the default scaling.

Parameters:
duration the animation duration
baseColor the base color for the fade effect
Returns:
a Color-valued animation function for the default scaling

Definition at line 243 of file BasicTextAnimation.java.

Referenced by defaultScale().

                         {
        return AnimationFunctions.alphaColor(
            AnimationFunctions.linear(
                duration,
                new Integer[] {
                    new Integer(0),
                    new Integer(255),
                    new Integer(255),
                    new Integer(0)},
                new float[] { 0.0f, 0.2f, 0.85f, 1.0f }),
            baseColor);
    }


Generated by  Doxygen 1.6.0   Back to index