Class MultiTween

MultiTween supports multiple tweens being chained one after another.

Hierarchy

  • MultiTween

Implements

Constructors

Accessors

Methods

Constructors

  • Parameters

    • firstChild: ITween

      The first tween in the chain.

    • weight: number = 1

    Returns MultiTween

Accessors

  • get from(): number
  • The value to start the tween from.

    Returns number

  • get to(): number
  • The value to end the tween at.

    Returns number

  • get typeName(): string
  • Returns the name of this type. This can be used rather than instanceof which is sometimes unreliable.

    Returns string

Methods

  • Allows for tweens to be chained one after another.

    Parameters

    • tween: ITween

      The next tween to be added to the chain.

    • weight: number = 1

      Weighting to determine how much of the tweening time that the new tween gets.

    Returns ITween

  • Used by the library for the custom serialization of tween objects

    Returns { children: any[]; type: string }

    • children: any[]
    • type: string
  • Accepts a percent value and returns a corresponding value somewhere between the from and to values.

    Parameters

    • percent: number

      Expects a value ranging from 0 to 1.

    Returns number

Generated using TypeDoc