java.lang.Object
com.example.project.controllers.gameScreens.animations.AnimationWrapper
com.example.project.controllers.gameScreens.animations.TextEmphasisAnimation

public class TextEmphasisAnimation extends AnimationWrapper
An animation to quickly enlarge text and then return it to its original scale.
  • Constructor Details

    • TextEmphasisAnimation

      public TextEmphasisAnimation(javafx.scene.control.Label textToAnimate, javafx.scene.paint.Paint colorAtStart, javafx.scene.paint.Paint changeColourAtEnd, javafx.util.Duration timePauseAfterAnim)
      create the animations for text growing then shrinking
      Parameters:
      textToAnimate - Label.
      colorAtStart - initial colour change.
      changeColourAtEnd - colour change after finished.
      timePauseAfterAnim - time delay after animation until animation finished.