Class Tween

The Tween class contains static methods for slightly more nice and intuitive creation of tweens.

Hierarchy

  • Tween

Constructors

Methods

  • Creates a new instance of CubicInTween.

    Returns

    Parameters

    • from: number

      The value to start the tween from.

    • to: number

      The value to end the tween at.

    Returns CubicInTween

  • Creates a new instance of CubicInOutTween.

    Returns

    Parameters

    • from: number

      The value to start the tween from.

    • to: number

      The value to end the tween at.

    Returns CubicInOutTween

  • Creates a new instance of CubicOutTween.

    Returns

    Parameters

    • from: number

      The value to start the tween from.

    • to: number

      The value to end the tween at.

    Returns CubicOutTween

  • Creates a new instance of LinearTween.

    Returns

    Parameters

    • from: number

      The value to start the tween from.

    • to: number

      The value to end the tween at.

    Returns LinearTween

  • Takes an object parsed from JSON Tween data to load into an actual tween instance.

    Parameters

    • tweenData: any

    Returns LinearTween | MultiTween

  • Creates a new instance of MultiTween

    Returns

    Parameters

    • firstChild: ITween

      The first child to make up the multi-tween

    • weight: number = 1

      How much weight the first child gets within the overall tween

    Returns MultiTween

  • Creates a new instance of QuadraticInTween.

    Returns

    Parameters

    • from: number

      The value to start the tween from.

    • to: number

      The value to end the tween at.

    Returns QuadraticInTween

  • Creates a new instance of QuadraticInOutTween.

    Returns

    Parameters

    • from: number

      The value to start the tween from.

    • to: number

      The value to end the tween at.

    Returns QuadraticInOutTween

  • Creates a new instance of QuadraticOutTween.

    Returns

    Parameters

    • from: number

      The value to start the tween from.

    • to: number

      The value to end the tween at.

    Returns QuadraticOutTween

  • Creates a new instance of QuarticInTween.

    Returns

    Parameters

    • from: number

      The value to start the tween from.

    • to: number

      The value to end the tween at.

    Returns QuarticInTween

  • Creates a new instance of QuarticInOutTween.

    Returns

    Parameters

    • from: number

      The value to start the tween from.

    • to: number

      The value to end the tween at.

    Returns QuarticInOutTween

  • Creates a new instance of QuarticOutTween.

    Returns

    Parameters

    • from: number

      The value to start the tween from.

    • to: number

      The value to end the tween at.

    Returns QuarticOutTween

  • Creates a new instance of SineInTween.

    Returns

    Parameters

    • from: number

      The value to start the tween from.

    • to: number

      The value to end the tween at.

    Returns SineInTween

  • Creates a new instance of SineInOutTween.

    Returns

    Parameters

    • from: number

      The value to start the tween from.

    • to: number

      The value to end the tween at.

    Returns SineInOutTween

  • Creates a new instance of SineOutTween.

    Returns

    Parameters

    • from: number

      The value to start the tween from.

    • to: number

      The value to end the tween at.

    Returns SineOutTween

  • Creates a new instance of StepsTween.

    Returns

    Parameters

    • from: number

      The value to start the tween from.

    • to: number

      The value to end the tween at.

    • steps: number

    Returns StepsTween

Generated using TypeDoc