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

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

Creates and answers the color animation function for the default fade.

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

Definition at line 199 of file BasicTextAnimation.java.

Referenced by BasicTextAnimation().

                         {
        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.3f, 0.7f, 1.0f }),
            baseColor);
    }


Generated by  Doxygen 1.6.0   Back to index